Fixes bluebeam password protection issue

This commit is contained in:
Colin VanLang 2015-10-15 13:57:35 -04:00
parent 2096a2a94a
commit 6d8e883fe6

View File

@ -1762,9 +1762,10 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
if (pdfAlgorithm.checkUserPassword(password, userValidationSalt, if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,
userPassword)) { userPassword)) {
return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption); return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);
} else if (pdfAlgorithm.checkOwnerPassword(password, ownerValidationSalt, } else if (password.length && pdfAlgorithm.checkOwnerPassword(password,
uBytes, ownerValidationSalt,
ownerPassword)) { uBytes,
ownerPassword)) {
return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes, return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,
ownerEncryption); ownerEncryption);
} }