summaryrefslogtreecommitdiffstats
path: root/etc/inc/authgui.inc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 22:47:43 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 22:47:43 -0500
commit53b305053dc26097bac64728521ccdf57e355f15 (patch)
tree87f301d029e87cc312cba1291d3a0d6982781fc7 /etc/inc/authgui.inc
parent953ab2d47bc2da80d6aae5992ebf74022322c7b1 (diff)
downloadpfsense-53b305053dc26097bac64728521ccdf57e355f15.zip
pfsense-53b305053dc26097bac64728521ccdf57e355f15.tar.gz
Set 2nd parameter for isAllowedPage. Will be required for #34, 33, 32
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r--etc/inc/authgui.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 5332582..686bd53 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -81,7 +81,7 @@ $allowedpages = getAllowedPages($HTTP_SERVER_VARS['AUTH_USER']);
/*
* redirect to first allowed page if requesting a wrong url
*/
-if (!isAllowedPage($_SERVER['SCRIPT_NAME'])) {
+if (!isAllowedPage($_SERVER['SCRIPT_NAME'], $_SESSION['Username'])) {
if (count($allowedpages) > 0) {
$page = str_replace('*', '', $allowedpages[0]);
$_SESSION['Post_Login'] = true;
OpenPOWER on IntegriCloud