X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/87ae71d836e57d6952f4c11ee6ffc02a79d8bdf7..47fdce547d48fe80bcaac1495bf12c7450a1380e:/page.php diff --git a/page.php b/page.php index 6623c8b..21cc0a0 100644 --- a/page.php +++ b/page.php @@ -56,7 +56,7 @@ $Edit = isset($_GET['edit']); # distinguish subpage Args from topmost Page script $Args = ''; -$Page = preg_replace('/\?.*/', '', $_SERVER['REQUEST_URI']); +$Page = preg_replace('/\?.*/', '', @$_SERVER['PATH_INFO'] ?: $_SERVER['REQUEST_URI']); $Page = urldecode(trim($Page, '/')) ?: 'index'; while (TRUE) { if (file_exists("$Page/.private")) {