[BUGFIX] Allow arbitrary protocols in new LinkService 17/52617/3
authorBenni Mack <benni@typo3.org>
Wed, 26 Apr 2017 18:40:21 +0000 (20:40 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 2 May 2017 17:52:56 +0000 (19:52 +0200)
commit78affb442fdcfec30de97e684068d61ab37c82a8
tree353ed074f818893d044f5d75c6cef443a4d6c6de
parent3c3cd2944ca11eae8c399217a6661758f68402f4
[BUGFIX] Allow arbitrary protocols in new LinkService

Since TYPO3 v8 it is not possible to simply create a link to "tel:+491727144385" anymore,
which was possible in TYPO3 v7. Instead an exception is thrown as the "toString()" method
cannot handle legacy links which have no specific type.

The patch checks for a "url" attribute allowing to represent a URL and to render a link via typolink.

Resolves: #80217
Releases: master, 8.7
Change-Id: I617e280295b4789a8c295f5ee21463a643e58afc
Reviewed-on: https://review.typo3.org/52617
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mattias Nilsson <tollepjaer@gmail.com>
Tested-by: Mattias Nilsson <tollepjaer@gmail.com>
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php
typo3/sysext/core/Classes/LinkHandling/LinkService.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php