diff options
-rw-r--r-- | etc/inc/priv.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/priv.inc b/etc/inc/priv.inc index f150aaf..16dd112 100644 --- a/etc/inc/priv.inc +++ b/etc/inc/priv.inc @@ -122,8 +122,10 @@ function cmp_page_matches($page, & $matches, $fullwc = true) { $wcpos = strpos($match, "*"); if ($wcpos === false) $result = strcmp($page, $match); - else - $result = strncmp($page, $match, $wcpos); + else { + $match = "/" . str_replace(array(".", "*"), array("\.", ".*"), $match) . "/"; + $result = !preg_match($match, $page); + } if (!$result) return true; |