We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce5d2c commit 17840d3Copy full SHA for 17840d3
1 file changed
php/basicphp/functions.php
@@ -290,7 +290,7 @@ function firewall()
290
if (FIREWALL_ON == true) {
291
292
// Allow only access from whitelisted IP addresses
293
- if (! in_array($_SERVER['REMOTE_ADDR'], ALLOWED_IP_ADDR)) {
+ if (isset($_SERVER['REMOTE_ADDR']) && !in_array($_SERVER['REMOTE_ADDR'], ALLOWED_IP_ADDR)) {
294
header($_SERVER["SERVER_PROTOCOL"]." 403 Forbidden");
295
exit('<p>You are not allowed to access the application using your IP address.</p>');
296
}
0 commit comments