[BUGFIX] Do not encode links from non-local storages 86/23786/4
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 12 Sep 2013 12:39:26 +0000 (14:39 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 5 Nov 2013 13:48:06 +0000 (14:48 +0100)
commit4e59b659436f61395e86f809f37c1ac5533de686
treeb4549b93787dfe3cb1dc5ba8b7dcae329211bfc1
parentf44cbd5468c06b6639397ecda431451ca7830a97
[BUGFIX] Do not encode links from non-local storages

The check for non file URLs that was introduced
in #42223 does not take relative URLs into account,
which are also perfectly valid for some drivers.

Just check if the image resource URL is a local
file, because only then it makes sense to maybe
transform it to a GIF.

We also remove an obsolete check for file
in imageLinkWrap as the URL there can be either
an URL to a remote storage or an integer.

Related: #42223
Resolves: #51949
Releases: 6.0, 6.1, 6.2
Change-Id: I67c8cea1c3b4997558b99d244bae5ea6d509f923
Reviewed-on: https://review.typo3.org/23786
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php