[BUGFIX] Allow arbitrary protocols in new LinkService 84/52684/2
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 18:03:23 +0000 (20:03 +0200)
commit8b2958343ba3d6dda774f5a79d2dc3cf0e801b08
tree168abf76f57581675b91bd142108d664970fb4b6
parent6f3343c93ace16d23e165ad1ac03ff4261c66870
[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/52684
Tested-by: TYPO3com <no-reply@typo3.com>
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