mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Fixes bluebeam password protection issue
This commit is contained in:
parent
2096a2a94a
commit
6d8e883fe6
1 changed files with 4 additions and 3 deletions
|
@ -1762,9 +1762,10 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
|
|||
if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,
|
||||
userPassword)) {
|
||||
return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);
|
||||
} else if (pdfAlgorithm.checkOwnerPassword(password, ownerValidationSalt,
|
||||
uBytes,
|
||||
ownerPassword)) {
|
||||
} else if (password.length && pdfAlgorithm.checkOwnerPassword(password,
|
||||
ownerValidationSalt,
|
||||
uBytes,
|
||||
ownerPassword)) {
|
||||
return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,
|
||||
ownerEncryption);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue