diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-12-03 01:41:43 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-12-03 01:41:43 +0100 |
commit | e80253209fbb46964db10b18dc09b5bbdf9a46d8 (patch) | |
tree | 1d7d1245113d77bf4ec9ad9c9be43c9dda414a88 /phpBB | |
parent | b86289fdd358a560e8e19da072c352c65bb44849 (diff) | |
parent | 5ec1c887959be5629c8a4c712b152d58058929a8 (diff) | |
download | forums-e80253209fbb46964db10b18dc09b5bbdf9a46d8.tar forums-e80253209fbb46964db10b18dc09b5bbdf9a46d8.tar.gz forums-e80253209fbb46964db10b18dc09b5bbdf9a46d8.tar.bz2 forums-e80253209fbb46964db10b18dc09b5bbdf9a46d8.tar.xz forums-e80253209fbb46964db10b18dc09b5bbdf9a46d8.zip |
Merge branch 'ticket/nickvergessen/9930' into develop-olympus
* ticket/nickvergessen/9930:
[ticket/9930] Redirect failes with open_basedir enabled.
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 561a9906c4..c7f19b709d 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2353,12 +2353,12 @@ function redirect($url, $return = false, $disable_cd_check = false) // Relative uri $pathinfo = pathinfo($url); - if (!$disable_cd_check && !file_exists($pathinfo['dirname'])) + if (!$disable_cd_check && !file_exists($pathinfo['dirname'] . '/')) { $url = str_replace('../', '', $url); $pathinfo = pathinfo($url); - if (!file_exists($pathinfo['dirname'])) + if (!file_exists($pathinfo['dirname'] . '/')) { // fallback to "last known user page" // at least this way we know the user does not leave the phpBB root |