1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/11874] Correct when $phpbb_root_path is appended to build_url()

PHPBB3-11874
This commit is contained in:
Nathan Guse 2013-10-10 16:41:31 -05:00
parent 31649f1eb0
commit ac9225774e

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