SCRIPT_NAME instead of PHP_SELF to find self for niceurl test

This commit is contained in:
Shish
2020-03-27 19:03:46 +00:00
parent efde5e1edf
commit 5ea7cc5b36
2 changed files with 1 additions and 2 deletions

View File

@@ -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 = "<script type='text/javascript'>