[ticket/11647] Allow custom ports

Allow custom port number in schema-relative URLs

PHPBB3-11647