diff options
| author | ******* ****** <savetheinternet@omegadev.org> | 2010-11-26 01:13:36 -0800 |
|---|---|---|
| committer | ******* ****** <savetheinternet@omegadev.org> | 2010-11-26 01:13:36 -0800 |
| commit | 0a6aab860a10318668bb3e4ec41c4cfa6a3801e4 (patch) | |
| tree | d6fbb2d9a47f768471b2f2243897024c804cd92c /test.php | |
| parent | ee9cc2ec243ec55161fba3124f5a3f6c3326c865 (diff) | |
Bug fix for setups on the root URI/directory (/)
Diffstat (limited to 'test.php')
| -rw-r--r-- | test.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}'";
|
