From 06a23a1dd0a46a49bb7078f4864a5f8edb677291 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Sun, 11 Feb 2018 22:12:55 +0000 Subject: [PATCH] Update CryptKey.php Change the error message to reflect that the server will also accept 440 and 400 as a valid file permission --- src/CryptKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CryptKey.php b/src/CryptKey.php index 151b57fc..b3136077 100644 --- a/src/CryptKey.php +++ b/src/CryptKey.php @@ -50,7 +50,7 @@ class CryptKey $keyPathPerms = decoct(fileperms($keyPath) & 0777); if (in_array($keyPathPerms, ['400', '440', '600', '660'], true) === false) { trigger_error(sprintf( - 'Key file "%s" permissions are not correct, should be 600 or 660 instead of %s', + 'Key file "%s" permissions are not correct, recommend changing to 600 or 660 instead of %s', $keyPath, $keyPathPerms ), E_USER_NOTICE);