diff options
author | Nils Adermann <naderman@naderman.de> | 2013-10-10 15:54:58 -0700 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2013-10-10 15:54:58 -0700 |
commit | 446dc9b47e51bc38a6593ff399a1ba155a6b5b49 (patch) | |
tree | 67314deea5bc506b1daabdca5ea23099f2e3b2fe /phpBB/includes/functions.php | |
parent | 0b56390e320fbad7d3873b5e7db35af958e89386 (diff) | |
parent | ac9225774ecd93cbc717b99902c9cc94c7d8372e (diff) | |
download | forums-446dc9b47e51bc38a6593ff399a1ba155a6b5b49.tar forums-446dc9b47e51bc38a6593ff399a1ba155a6b5b49.tar.gz forums-446dc9b47e51bc38a6593ff399a1ba155a6b5b49.tar.bz2 forums-446dc9b47e51bc38a6593ff399a1ba155a6b5b49.tar.xz forums-446dc9b47e51bc38a6593ff399a1ba155a6b5b49.zip |
Merge pull request #1764 from EXreaction/ticket/11874
[ticket/11874] Do not always prepend the web path; only replace phpbb_root_path
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1e33e6284a..947e29ea02 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; } |