From 5ea7cc5b36b8ead39e53613ff3de58dbcc518c09 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 27 Mar 2020 19:03:46 +0000 Subject: [PATCH] SCRIPT_NAME instead of PHP_SELF to find self for niceurl test --- ext/setup/main.php | 2 +- tests/router.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/setup/main.php b/ext/setup/main.php index 758deaa2..88e32009 100644 --- a/ext/setup/main.php +++ b/ext/setup/main.php @@ -332,7 +332,7 @@ class Setup extends Extension $host .= ":" . $_SERVER["SERVER_PORT"]; } } - $full = "//" . $host . $_SERVER["PHP_SELF"]; + $full = "//" . $host . $_SERVER["SCRIPT_NAME"]; $test_url = str_replace("/index.php", "/nicetest", $full); $nicescript = "