summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2011-01-09 22:45:21 -0500
committerChris Buechler <cmb@pfsense.org>2011-01-09 22:45:21 -0500
commit17dd7ff3d767c3de7684153f084b3431dcd38240 (patch)
treec2b00663021316ca0b23a716e755cc5769b94427 /etc/inc/auth.inc
parent10e4d55e9d36a7aeb7de22a302e734a595090cea (diff)
downloadpfsense-17dd7ff3d767c3de7684153f084b3431dcd38240.zip
pfsense-17dd7ff3d767c3de7684153f084b3431dcd38240.tar.gz
allow 127.0.0.1 and localhost for HTTP_REFERER checks
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 60912f7..c619004 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -130,6 +130,10 @@ if(function_exists("display_error_form") && !isset($config['system']['webgui']['
break;
}
}
+ if($referrer_host == "127.0.0.1" || $referrer_host == "localhost") {
+ // allow SSH port forwarded connections and links from localhost
+ $found_host = true;
+ }
}
}
if($found_host == false) {
OpenPOWER on IntegriCloud