[BUGFIX] Title includes html tags 67/19167/2
authorNicole Cordes <typo3@cordes.co>
Fri, 22 Mar 2013 09:13:21 +0000 (10:13 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Fri, 22 Mar 2013 21:45:59 +0000 (22:45 +0100)
In the filelist special folders like _temp_ and _recycler_ folder are
highlighted in bold as they get human readable names. The <strong>
tags are shown in the title tag as well. Therefore the title tag has
to be stripped of any html tags.

Change-Id: I4b21a916851e0d02aa58971eabda32f813bd890c
Fixes: #46532
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/19167
Reviewed-by: Fabien Udriot
Reviewed-by: Michael Staatz
Reviewed-by: Oliver Klee
Tested-by: Michael Staatz
Reviewed-by: Wouter Wolters
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/filelist/Classes/FileList.php

index 28805ea..7c6b82d 100644 (file)
@@ -416,7 +416,7 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                                $this->counter++;
                                list($title, $icon, $path) = $this->dirData($folderObject);
                                // The icon with link
-                               $theIcon = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForFile('folder', array('title' => $title));
+                               $theIcon = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForFile('folder', array('title' => strip_tags($title)));
                                if ($this->clickMenus) {
                                        $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($theIcon, $folderObject->getCombinedIdentifier());
                                }