mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-17 13:38:01 +00:00
missing part for last fix
This commit is contained in:
@@ -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')));
|
||||
|
||||
Reference in New Issue
Block a user