mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11874] Correct when $phpbb_root_path is appended to build_url()
PHPBB3-11874
This commit is contained in:
parent
31649f1eb0
commit
ac9225774e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue