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')));