1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

Merge pull request #1764 from EXreaction/ticket/11874

[ticket/11874] Do not always prepend the web path; only replace phpbb_root_path
This commit is contained in:
Nils Adermann
2013-10-10 15:54:58 -07:00
5 changed files with 27 additions and 24 deletions

View File

@@ -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;
}