mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-20 06:58:00 +00:00
catching non-configured subnet bug
This commit is contained in:
@@ -26,7 +26,7 @@ function architect($url)
|
||||
{
|
||||
// check if client address is allowed
|
||||
$forbidden = false;
|
||||
if(defined('ALLOWED_SUBNET') && !isIPInRange( getUserIP(), ALLOWED_SUBNET ))
|
||||
if(defined('ALLOWED_SUBNET') && ALLOWED_SUBNET != '' && !isIPInRange( getUserIP(), ALLOWED_SUBNET ))
|
||||
{
|
||||
$forbidden = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user