diff --git a/src/etc/inc/authgui.inc b/src/etc/inc/authgui.inc index 5eae174ef..c7b4aeefe 100644 --- a/src/etc/inc/authgui.inc +++ b/src/etc/inc/authgui.inc @@ -52,8 +52,9 @@ function cmp_page_matches($page, & $matches, $fullwc = true) { /* look for a match */ foreach ($matches as $match) { /* possibly ignore full wildcard match */ - if (!$fullwc && !strcmp($match ,"*")) - continue; + if (!$fullwc && !strcmp($match ,"*")) { + continue; + } /* compare exact or wildcard match */ $match = str_replace(array(".", "*","?"), array("\.", ".*","\?"), $match); @@ -87,6 +88,9 @@ function isAllowedPage($page) } } } + if ($page == "/") { + $page = "/index.php"; + } /* user privelege access check */ $allowedpages = getAllowedPages($_SESSION['Username']);