Skip to content

Commit bf0f73a

Browse files
author
Jordan Hall
committed
Set open permissions on created directories
1 parent 2eefcce commit bf0f73a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/RWFileCache.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ protected function getFilePathFromKey($key)
319319
}
320320
}
321321

322+
if (!is_readable($directoryToCreate) || !is_writable($directoryToCreate)) {
323+
chmod($directoryToCreate, 0777);
324+
}
325+
322326
$filePath = $this->config['cacheDirectory'].$key.'.'.$this->config['fileExtension'];
323327

324328
return $filePath;

0 commit comments

Comments
 (0)