Project

General

Profile

« Previous | Next » 

Revision ae5c8d0e

Added by Warren Baker about 13 years ago

Make sure the page does match as we trying to match the page to the url path and not the full url

View differences:

usr/local/www/help.php
396 396
	/* If there was no match, there were no parameters, just grab the filename
397 397
		Otherwise, use the matched filename from above. */
398 398
	if (empty($uri_split[0])) {
399
		$pagename = ltrim($_SERVER["HTTP_REFERER"], '/');
399
		$pagename = ltrim(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_PATH), '/');
400 400
	} else {
401 401
		$pagename = $uri_split[1];
402 402
	}

Also available in: Unified diff