From 7c4e4ce04fc518d98a12f74152cdcc18c70a0f4f Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Sat, 14 Oct 2017 22:27:37 +0000 Subject: [PATCH] Yes, use REQUEST_URI not SCRIPT_URI here too --- rewrite/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rewrite/functions.php b/rewrite/functions.php index d077c8fd..45ef0445 100644 --- a/rewrite/functions.php +++ b/rewrite/functions.php @@ -27,14 +27,15 @@ function freshports_Parse404URI($REQUEST_URI, $db) { if ($Debug) { echo "Debug is turned on. Only 404 will be returned now because we cannot alter the headers at this time.
\n"; echo "\$REQUEST_URI='$REQUEST_URI'
"; + phpinfo(); } $CategoryID = 0; - $URLParts = parse_url($_SERVER['SCRIPT_URI']); + $URLParts = parse_url($_SERVER['REQUEST_URI']); if ($Debug) { - echo 'the URI is
\'' . $_SERVER['SCRIPT_URI'] . "'

\n"; + echo 'the URI is
\'' . $_SERVER['REQUEST_URI'] . "'

\n"; echo 'the url parts are
\'' . print_r($URLParts) . "'

\n"; }