Skip to content

Commit

Permalink
Yes, use REQUEST_URI not SCRIPT_URI here too
Browse files Browse the repository at this point in the history
  • Loading branch information
dlangille committed Oct 14, 2017
1 parent 2af721a commit 7c4e4ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rewrite/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>\n";
echo "\$REQUEST_URI='$REQUEST_URI'<br>";
phpinfo();
}

$CategoryID = 0;

$URLParts = parse_url($_SERVER['SCRIPT_URI']);
$URLParts = parse_url($_SERVER['REQUEST_URI']);
if ($Debug)
{
echo 'the URI is <pre>\'' . $_SERVER['SCRIPT_URI'] . "'</pre><br>\n";
echo 'the URI is <pre>\'' . $_SERVER['REQUEST_URI'] . "'</pre><br>\n";
echo 'the url parts are <pre>\'' . print_r($URLParts) . "'</pre><br>\n";
}

Expand Down

0 comments on commit 7c4e4ce

Please sign in to comment.