[BUGFIX] Allow to add type=0 to typolink syntax 99/59299/2
authorBenni Mack <benni@typo3.org>
Wed, 26 Dec 2018 23:21:34 +0000 (00:21 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 1 Jan 2019 19:11:14 +0000 (20:11 +0100)
commit6bdfd7e6bb394d535f8a1e07cef9f59f1319c0e8
tree02ed58d5c0f1d67f2630624471117ca9af8a592a
parent9e7f094e7c187c0310fa66dac94e199766e904ae
[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/59299
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php
typo3/sysext/core/Classes/LinkHandling/PageLinkHandler.php
typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php