Skip to content

Commit

Permalink
:octocat: ok it has to be 0755 at least
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Apr 2, 2024
1 parent c051b25 commit e3e4db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit e3e4db7

Please sign in to comment.