From e3e4db79e74f551201e0a2ad095ff8792b1c494e Mon Sep 17 00:00:00 2001 From: smiley Date: Tue, 2 Apr 2024 18:19:13 +0200 Subject: [PATCH] :octocat: ok it has to be 0755 at least --- src/Storage/FileStorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Storage/FileStorage.php b/src/Storage/FileStorage.php index b54779d..b08e558 100644 --- a/src/Storage/FileStorage.php +++ b/src/Storage/FileStorage.php @@ -24,7 +24,7 @@ * Implements a memory storage adapter. * * Please note that the storage root directory needs permissions 0777 or `is_writable()` will fail. - * Subfolders created by this class will have permissions set to 0644. + * Subfolders created by this class will have permissions set to 0755. * * @see \is_writable() * @see \chillerlan\OAuth\OAuthOptions::$fileStoragePath @@ -187,7 +187,7 @@ protected function saveFile(string $data, string $key, string $provider):void{ $path = $this->getFilepath($key, $provider); $dir = dirname($path); - if(!is_dir($dir) && !mkdir($dir, 0o644, true)){ + if(!is_dir($dir) && !mkdir($dir, 0o755, true)){ throw new OAuthStorageException(sprintf('could not create directory "%s"', $dir)); // @codeCoverageIgnore }