You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/05/21 11:07:44 UTC

svn commit: r1877999 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java

Author: tilman
Date: Thu May 21 11:07:44 2020
New Revision: 1877999

URL: http://svn.apache.org/viewvc?rev=1877999&view=rev
Log:
PDFBOX-4839: use earlier jdk method

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java?rev=1877999&r1=1877998&r2=1877999&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java Thu May 21 11:07:44 2020
@@ -327,7 +327,7 @@ public class StandardSecurityHandler ext
         }
 
         // If no owner password is set, use the user password instead.
-        if (ownerPassword.isEmpty())
+        if (ownerPassword.length() == 0)
         {
             ownerPassword = userPassword;
         }