catching non-configured subnet bug

This commit is contained in:
Christian Haschek
2020-07-15 20:36:55 +02:00
parent 166ff1da1b
commit 0119368376

View File

@@ -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;
} }