Skip to content

Commit

Permalink
Fix for mkdir and setfacl on Linux servers
Browse files Browse the repository at this point in the history
  • Loading branch information
maartendekeizer committed May 6, 2017
1 parent 8b4c3e5 commit cb04601
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function resizeImageAction(Request $request, $path, $size, $checksum)
$targetDir = substr($targetPath, 0, strrpos($targetPath, DIRECTORY_SEPARATOR));

if (file_exists($targetDir) === false)
mkdir($targetDir, null, true);
mkdir($targetDir, 0775, true);

$expectedChecksum = substr(sha1(str_replace([' '], ['%20'], $webPath) . $size . $this->app['imagine.secret']), 0, 10);
if ($expectedChecksum !== $checksum)
Expand Down

0 comments on commit cb04601

Please sign in to comment.