mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/11874] Correct when $phpbb_root_path is appended to build_url()
PHPBB3-11874
This commit is contained in:
parent
31649f1eb0
commit
ac9225774e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user