* Fixed a problem with a recent change in the filelist module
authorMichael Stucki <michael.stucki@typo3.org>
Sun, 24 Apr 2005 03:02:30 +0000 (03:02 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Sun, 24 Apr 2005 03:02:30 +0000 (03:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@667 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.file_list.inc

index fa924b3..b92b412 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2005-04-24  Michael Stucki  <michael@typo3.org>
+
+       * Fixed a problem with a recent change in the filelist module
 
 2005-04-19  Martin Kutschker <martin.t.kutschker@blackbox.net>
 
index 7c9799d..17f54d3 100755 (executable)
@@ -367,7 +367,12 @@ class fileList extends t3lib_recordList {
         */
        function linkWrapDir($code,$path)       {
                $href = $this->script.'?id='.rawurlencode($path);
-               return '<a href="'.htmlspecialchars($href).'" title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
+
+               if(!strcmp($code,strip_tags($code)))    {
+                       return '<a href="'.htmlspecialchars($href).'" title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
+               } else  {
+                       return '<a href="'.htmlspecialchars($href).'">'.$code.'</a>';
+               }
        }
 
        /**