[BUGFIX] Allow to add type=0 to typolink syntax 21/59321/2
authorBenni Mack <benni@typo3.org>
Wed, 26 Dec 2018 23:21:34 +0000 (00:21 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 4 Jan 2019 13:34:21 +0000 (14:34 +0100)
commit26e03f55f87053590598943f5d994360c003c04b
tree876210d88720e0a08f6973ddfe6b7b4d53f87d4f
parentf5113db66c1949f7e9ed75a4d0cf4929428054a7
[BUGFIX] Allow to add type=0 to typolink syntax

In previous versions, it was possible to link
to type=0 via "4,0,&param=2" where this was
stripped away, as the old syntax with the third
parameter was not supported anymore.

The patch changes the "empty()" to "isset()"
and explicitly sets the type parameter again.

Resolves: #81226
Releases: master, 9.5, 8.7
Change-Id: I5d19c38c90571f6686e7121dac638342783237ec
Reviewed-on: https://review.typo3.org/59321
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php
typo3/sysext/core/Classes/LinkHandling/PageLinkHandler.php
typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php