missing part for last fix

This commit is contained in:
Christian Haschek
2020-07-27 09:40:30 +02:00
parent 0119368376
commit 77d4023f00

View File

@@ -695,7 +695,7 @@ function isCloudflare() {
function executeUploadPermission() function executeUploadPermission()
{ {
if(defined('ALLOWED_SUBNET') && !isIPInRange( getUserIP(), ALLOWED_SUBNET )) if(defined('ALLOWED_SUBNET') && ALLOWED_SUBNET != '' && !isIPInRange( getUserIP(), ALLOWED_SUBNET ))
{ {
http_response_code(403); http_response_code(403);
exit(json_encode(array('status'=>'err','reason'=> 'Access denied'))); exit(json_encode(array('status'=>'err','reason'=> 'Access denied')));