[BUGFIX] Allow PSR-7 Uris to allow no port at all 16/56416/3
authorBenni Mack <benni@typo3.org>
Wed, 21 Mar 2018 21:23:47 +0000 (22:23 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 22 Mar 2018 12:51:30 +0000 (13:51 +0100)
commit971ff29a567e09dc70551966a8b1f8c61ab414ca
treed911697c9ccd9f7ce4affc0cdb1f5359902e1a62
parent18aaf1b52580229977e20be8d8c9b0f4ee6f2c74
[BUGFIX] Allow PSR-7 Uris to allow no port at all

In order to set a PSR-7 based uri to the default port
the specs allow to set $uri->withPort(null) but our
tests and implementation restrict that.

Resolves: #84518
Releases: master, 8.7
Change-Id: Ic2c3d70fca35a767c7ed9d324eb93b30c66bbd3e
Reviewed-on: https://review.typo3.org/56416
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Http/Uri.php
typo3/sysext/core/Tests/Unit/Http/UriTest.php