From 01193683760d38d04002c1f1527ef7683f4a6040 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Wed, 15 Jul 2020 20:36:55 +0200 Subject: [PATCH] catching non-configured subnet bug --- inc/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/core.php b/inc/core.php index 8e26015..e21f2de 100644 --- a/inc/core.php +++ b/inc/core.php @@ -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; }