diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index 787b68e11..10ddd5633 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -133,7 +133,7 @@ class Proxy extends BaseModule // direct cache , store under ./proxy/ $filename = $basepath . '/proxy/' . ProxyUtils::proxifyUrl($request['url'], true); file_put_contents($filename, $image->asString()); - chmod($filename, DI::config()->get('system', 'proxy_file_chmod', 0640)); + chmod($filename, DI::config()->get('system', 'proxy_file_chmod')); } elseif($cachefile !== '') { // cache file file_put_contents($cachefile, $image->asString()); @@ -153,7 +153,7 @@ class Proxy extends BaseModule if ($direct_cache && $request['sizetype'] != '') { $filename = $basepath . '/proxy/' . ProxyUtils::proxifyUrl($request['url'], true) . $request['sizetype']; file_put_contents($filename, $image->asString()); - chmod($filename, DI::config()->get('system', 'proxy_file_chmod', 0640)); + chmod($filename, DI::config()->get('system', 'proxy_file_chmod')); } self::responseImageHttpCache($image);