From c7df3e81060e71fcf01e645da60a5ea21cd095f4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 9 Sep 2013 11:11:13 +0200 Subject: [PATCH] Improved test.php to properly validate the return value Most nginx setups seem to simply throw a server error if a path_info is present and not resolvable by default. In some environments no error is thrown, but the path_info is still flawed. --- wcfsetup/test.php | 50 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/wcfsetup/test.php b/wcfsetup/test.php index bf4b371f14..c548f20ef2 100644 --- a/wcfsetup/test.php +++ b/wcfsetup/test.php @@ -1,6 +1,40 @@ @@ -109,7 +143,7 @@ else { if (isset($_SERVER['SERVER_SOFTWARE']) && stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false) { $isNginx = true; } - + $isNginx = true; if ($isNginx) { ?>