From ffffc4bfebce693401e3c261f39ed2f339751c3e Mon Sep 17 00:00:00 2001 From: Erik van Velzen Date: Thu, 21 Jun 2018 17:02:01 +0200 Subject: [PATCH] Allow 640 as key file permisions --- src/CryptKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CryptKey.php b/src/CryptKey.php index efc5f5e8..98b53222 100644 --- a/src/CryptKey.php +++ b/src/CryptKey.php @@ -48,7 +48,7 @@ class CryptKey if ($keyPermissionsCheck === true) { // Verify the permissions of the key $keyPathPerms = decoct(fileperms($keyPath) & 0777); - if (in_array($keyPathPerms, ['400', '440', '600', '660'], true) === false) { + if (in_array($keyPathPerms, ['400', '440', '600', '640', '660'], true) === false) { trigger_error(sprintf( 'Key file "%s" permissions are not correct, recommend changing to 600 or 660 instead of %s', $keyPath,