mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11874] Correct when $phpbb_root_path is appended to build_url()
PHPBB3-11874
This commit is contained in:
@@ -2866,7 +2866,7 @@ function build_url($strip_vars = false)
|
|||||||
$url_parts = parse_url($page);
|
$url_parts = parse_url($page);
|
||||||
|
|
||||||
// URL
|
// 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;
|
$page = $phpbb_root_path . $page;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user