mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-20 23:18:01 +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
|
// check if client address is allowed
|
||||||
$forbidden = false;
|
$forbidden = false;
|
||||||
if(defined('ALLOWED_SUBNET') && !isIPInRange( getUserIP(), ALLOWED_SUBNET ))
|
if(defined('ALLOWED_SUBNET') && ALLOWED_SUBNET != '' && !isIPInRange( getUserIP(), ALLOWED_SUBNET ))
|
||||||
{
|
{
|
||||||
$forbidden = true;
|
$forbidden = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user