From 0a6aab860a10318668bb3e4ec41c4cfa6a3801e4 Mon Sep 17 00:00:00 2001 From: ******* ****** Date: Fri, 26 Nov 2010 01:13:36 -0800 Subject: [PATCH] Bug fix for setups on the root URI/directory (/) --- test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}'";