[ticket/11647] Allow custom ports

Allow custom port number in schema-relative URLs

PHPBB3-11647
This commit is contained in:
Vjacheslav Trushkin 2013-07-11 16:56:10 -04:00
parent 4fbdac0b9e
commit 94fc0cccdc

View file

@ -40,10 +40,6 @@ class phpbb_template_asset
{
// Workaround for PHP 5.4.6 and older bug #62844 - add fake scheme and then remove it
$this->components = parse_url('http:' . $url);
if (isset($this->components['port']))
{
return;
}
unset($this->components['scheme']);
return;
}