bug #7324: HTML breaks when using special characters in CSH bubble
authorPatrick Broens <patrick@netcreators.com>
Thu, 31 Jan 2008 10:24:45 +0000 (10:24 +0000)
committerPatrick Broens <patrick@netcreators.com>
Thu, 31 Jan 2008 10:24:45 +0000 (10:24 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2981 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_befunc.php

index fb80e1d..0ee92e6 100755 (executable)
@@ -2352,7 +2352,7 @@ class t3lib_BEfunc        {
                        }
                                // add description text
                        if ($data['description'] || $arrow) {
-                               $output = '<span class="paragraph">'.$data['description'].$arrow.'</span>';
+                               $output = '<span class="paragraph">'.nl2br(htmlspecialchars($data['description'])).$arrow.'</span>';
                        }
 
                                // put header before the rest of the text