[BUGFIX] Title includes html tags 03/19203/2
authorNicole Cordes <typo3@cordes.co>
Fri, 22 Mar 2013 09:13:21 +0000 (10:13 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 27 Mar 2013 06:46:14 +0000 (07:46 +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/19203
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/filelist/Classes/FileList.php

index 6581176..880317d 100644 (file)
@@ -408,7 +408,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());
                                }