From 5de0008b48b7eac58a8e80028dec97ee128379f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Thu, 11 Mar 2021 12:45:43 +0100 Subject: [PATCH] Removed default values. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/Module/Proxy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);