[BUGFIX] Add missing htmlspecialchars for thumbnail URL 05/27705/2
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 17 Feb 2014 21:27:16 +0000 (22:27 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 18 Feb 2014 23:04:28 +0000 (00:04 +0100)
Resolves: #56057
Releases: 6.2, 6.1
Change-Id: I9c1ec60e7518867d27e99681d3d18957a27c4983
Reviewed-on: https://review.typo3.org/27705
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/Clipboard/Clipboard.php

index 797c8dd..9a39332 100644 (file)
@@ -369,7 +369,7 @@ class Clipboard {
                                                                $processedFile = $fileObject->process(\TYPO3\CMS\Core\Resource\ProcessedFile::CONTEXT_IMAGEPREVIEW, array());
                                                                if ($processedFile) {
                                                                        $thumbUrl = $processedFile->getPublicUrl(TRUE);
-                                                                       $thumb .= '<br /><img src="' . $thumbUrl . '" title="' . htmlspecialchars($fileObject->getName()) . '" alt="" />';
+                                                                       $thumb .= '<br /><img src="' . htmlspecialchars($thumbUrl) . '" title="' . htmlspecialchars($fileObject->getName()) . '" alt="" />';
                                                                }
                                                        }
                                                        $lines[] = '
@@ -962,4 +962,4 @@ class Clipboard {
 }
 
 
-?>
\ No newline at end of file
+?>