diff --git a/test.php b/test.php index 04650cbd..b01482c0 100644 --- a/test.php +++ b/test.php @@ -58,7 +58,7 @@ // Configuration title('Configuration'); - $root = dirname($_SERVER['REQUEST_URI']) . '/'; + $root = dirname($_SERVER['REQUEST_URI']) . (dirname($_SERVER['REQUEST_URI']) == '/' ? '' : '/'); if(ROOT != $root) { $body .= check('Correct document root.', 'error'); $todo[] = "instance-config.php: Change ROOT to '{$root}'";