summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author******* ****** <savetheinternet@omegadev.org>2010-11-26 01:13:36 -0800
committer******* ****** <savetheinternet@omegadev.org>2010-11-26 01:13:36 -0800
commit0a6aab860a10318668bb3e4ec41c4cfa6a3801e4 (patch)
treed6fbb2d9a47f768471b2f2243897024c804cd92c
parentee9cc2ec243ec55161fba3124f5a3f6c3326c865 (diff)
Bug fix for setups on the root URI/directory (/)
-rw-r--r--test.php2
1 files changed, 1 insertions, 1 deletions
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}'";