From 77d4023f00e744d8686172a974f6056eb306f384 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Mon, 27 Jul 2020 09:40:30 +0200 Subject: [PATCH] missing part for last fix --- inc/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/core.php b/inc/core.php index e21f2de..289b54a 100644 --- a/inc/core.php +++ b/inc/core.php @@ -695,7 +695,7 @@ function isCloudflare() { function executeUploadPermission() { - if(defined('ALLOWED_SUBNET') && !isIPInRange( getUserIP(), ALLOWED_SUBNET )) + if(defined('ALLOWED_SUBNET') && ALLOWED_SUBNET != '' && !isIPInRange( getUserIP(), ALLOWED_SUBNET )) { http_response_code(403); exit(json_encode(array('status'=>'err','reason'=> 'Access denied')));