[BUGFIX] IMAGE content object accepts directories 43/33643/2
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:30:44 +0000 (21:30 +0100)
commit140ae2432d3140905d607222c0b488e2e262389a
tree8be4af2e590b7d56f49af98cab7f6f71b704bb44
parentde7dbde7ce071168f44cf556d5878e4f1206e741
[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/33643
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