summaryrefslogtreecommitdiffstats
path: root/usr/local/www/help.php
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-06-05 16:47:50 +0200
committerWarren Baker <warren@decoy.co.za>2012-06-05 16:47:50 +0200
commitae5c8d0e05720ace47f57fcbd9478504277efc89 (patch)
tree8bd302ad1a84dac4e525c0ddf4037aa2e889ed44 /usr/local/www/help.php
parentfbf0d4d3d4ff7bfab6e3f4afec5dbbe2341e099c (diff)
downloadpfsense-ae5c8d0e05720ace47f57fcbd9478504277efc89.zip
pfsense-ae5c8d0e05720ace47f57fcbd9478504277efc89.tar.gz
Make sure the page does match as we trying to match the page to the url path and not the full url
Diffstat (limited to 'usr/local/www/help.php')
-rw-r--r--usr/local/www/help.php2
1 files changed, 1 insertions, 1 deletions
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];
}
OpenPOWER on IntegriCloud