aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-10-10 16:41:31 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-10-10 16:41:31 -0500
commitac9225774ecd93cbc717b99902c9cc94c7d8372e (patch)
tree5be7d0472d53096959a46e42912e023b70b1bdda /phpBB
parent31649f1eb0fa7ce44d4ed8137020f63c5d7e62e6 (diff)
downloadforums-ac9225774ecd93cbc717b99902c9cc94c7d8372e.tar
forums-ac9225774ecd93cbc717b99902c9cc94c7d8372e.tar.gz
forums-ac9225774ecd93cbc717b99902c9cc94c7d8372e.tar.bz2
forums-ac9225774ecd93cbc717b99902c9cc94c7d8372e.tar.xz
forums-ac9225774ecd93cbc717b99902c9cc94c7d8372e.zip
[ticket/11874] Correct when $phpbb_root_path is appended to build_url()
PHPBB3-11874
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index dd0dcc09b6..cdadd8ac50 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2866,7 +2866,7 @@ function build_url($strip_vars = false)
$url_parts = parse_url($page);
// URL
- if ($url_parts !== false && !empty($url_parts['scheme']) && !empty($url_parts['host']))
+ if ($url_parts === false || empty($url_parts['scheme']) || empty($url_parts['host']))
{
$page = $phpbb_root_path . $page;
}