aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-07-07 21:50:24 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-07-07 21:50:24 +0000
commit62230baffd36241108655db91864ee4c82ad5785 (patch)
treefe892c7a154f54c05f9d31701c1b96b871a3c5a0 /phpBB/common.php
parent63dbf43693bd4f63682da1d55533bd34ff3f0d46 (diff)
downloadforums-62230baffd36241108655db91864ee4c82ad5785.tar
forums-62230baffd36241108655db91864ee4c82ad5785.tar.gz
forums-62230baffd36241108655db91864ee4c82ad5785.tar.bz2
forums-62230baffd36241108655db91864ee4c82ad5785.tar.xz
forums-62230baffd36241108655db91864ee4c82ad5785.zip
Appears that the redirect in common.php didn't work on all setups we tried, so swapping it for some new code which does
git-svn-id: file:///svn/phpbb/trunk@6155 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 0630d48934..a628dcf1de 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -126,8 +126,8 @@ if (!defined('PHPBB_INSTALLED'))
// Replace backslashes and doubled slashes (could happen on some proxy setups)
$script_name = str_replace(array('\\', '//'), '/', $script_name);
- $script_path = trim(dirname($script_name));
- $script_path = rtrim($script_patch, '/');
+ $script_path = trim(dirname($script_name)) . '/install/index.' . $phpEx;
+ $script_path = str_replace('//', '/', $script_path);
$url = (($secure) ? 'https://' : 'http://') . $server_name;
@@ -136,7 +136,7 @@ if (!defined('PHPBB_INSTALLED'))
$url .= ':' . $server_port;
}
- $url .= $script_path . '/install/index.' . $phpEx;
+ $url .= $script_path;
header('Location: ' . $url);
exit;
}