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 2016/05/05 21:49:51 UTC
svn commit: r1742480 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java
Author: tilman
Date: Thu May 5 21:49:50 2016
New Revision: 1742480
URL: http://svn.apache.org/viewvc?rev=1742480&view=rev
Log:
PDFBOX-3341: set access permissions to read only when not owner
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=1742480&r1=1742479&r2=1742480&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 5 21:49:50 2016
@@ -236,6 +236,7 @@ public class StandardSecurityHandler ext
if( isUserPassword )
{
currentAccessPermission = new AccessPermission( dicPermissions );
+ currentAccessPermission.setReadOnly();
encryptionKey =
computeEncryptedKey(
password.getBytes("ISO-8859-1"),