[Pkg-javascript-commits] [pdf.js] 65/174: Fixes bluebeam password protection issue
David Prévot
taffit at moszumanska.debian.org
Thu Nov 19 18:45:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 6d8e883fe6ec6a39dd09a0148e05abc365521ff1
Author: Colin VanLang <colinvl at dropbox.com>
Date: Thu Oct 15 13:57:35 2015 -0400
Fixes bluebeam password protection issue
---
src/core/crypto.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/core/crypto.js b/src/core/crypto.js
index 95d63b1..80c8fe7 100644
--- a/src/core/crypto.js
+++ b/src/core/crypto.js
@@ -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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list