[BUGFIX] IMAGE content object accepts directories 86/25286/7
authorTomita Militaru <militarutomita@gmail.com>
Mon, 11 Nov 2013 20:25:29 +0000 (22:25 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 30 Oct 2014 20:20:19 +0000 (21:20 +0100)
commit27a224bb22c96f59cf3fc72d1d13e4584729dd11
tree175c4f1fe82346ec0067f709677d2aa39a63dd51
parenta7b0e3833faa92cc1dc0e9f3d93d456d0f9e4d57
[BUGFIX] IMAGE content object accepts directories

Adds checks for file existence to avoid returning directory
paths instead of path to file.

Resolves: #51781
Releases: master, 6.2
Change-Id: I8f879f38b95e6d9562a8883d35664550d8fa8774
Reviewed-on: http://review.typo3.org/25286
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php