mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11647] Allow custom ports
Allow custom port number in schema-relative URLs PHPBB3-11647
This commit is contained in:
parent
4fbdac0b9e
commit
94fc0cccdc
1 changed files with 0 additions and 4 deletions
|
@ -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
|
// Workaround for PHP 5.4.6 and older bug #62844 - add fake scheme and then remove it
|
||||||
$this->components = parse_url('http:' . $url);
|
$this->components = parse_url('http:' . $url);
|
||||||
if (isset($this->components['port']))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
unset($this->components['scheme']);
|
unset($this->components['scheme']);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue