From ae5c8d0e05720ace47f57fcbd9478504277efc89 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 5 Jun 2012 16:47:50 +0200 Subject: Make sure the page does match as we trying to match the page to the url path and not the full url --- usr/local/www/help.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/help.php b/usr/local/www/help.php index 59c96bc..a21a59b 100644 --- a/usr/local/www/help.php +++ b/usr/local/www/help.php @@ -396,7 +396,7 @@ if (empty($pagename)) { /* If there was no match, there were no parameters, just grab the filename Otherwise, use the matched filename from above. */ if (empty($uri_split[0])) { - $pagename = ltrim($_SERVER["HTTP_REFERER"], '/'); + $pagename = ltrim(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_PATH), '/'); } else { $pagename = $uri_split[1]; } -- cgit v1.1