* Fixed bug #6553: Remove hardcoded strip_tags() from image altText and replacing...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 20 Oct 2007 21:41:31 +0000 (21:41 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 20 Oct 2007 21:41:31 +0000 (21:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2600 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/css_styled_content/static/setup.txt

index c044f8b..204a06c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
        * Fixed bug #5949: BE-Shortcut to Tools->User Admin returns error. (By Oliver Hader)
        * Fixed bug #6210: UserTSConfig value "options.moduleMenuCollapsable=0" does not work.
        * Fixed bug #6071: Switch to User does not work from context menu in List Module. (Thanks to Christian Kuhn all patches above!)
+       * Fixed bug #6553: Remove hardcoded strip_tags() from image altText and replacing it with TS stripHtml = 1 (Thanks to Georg Ringer)
        * Fixed bug: stdWrap for imgMax is not taken into account. (Thanks to Helmut Hummel)
 
 2007-10-19  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
index 83dc456..cd4d14a 100755 (executable)
@@ -2782,7 +2782,7 @@ class tslib_cObj {
                $longDesc = trim($this->stdWrap($conf['longdescURL'],$conf['longdescURL.']));
 
                        // "alt":
-               $altParam = ' alt="'.htmlspecialchars(strip_tags($altText)).'"';
+               $altParam = ' alt="'.htmlspecialchars($altText).'"';
 
                        // "title":
                $emptyTitleHandling = 'useAlt';
@@ -2791,9 +2791,9 @@ class tslib_cObj {
                        $emptyTitleHandling = $conf['emptyTitleHandling'];
                }
                if ($titleText || $emptyTitleHandling == 'keepEmpty')   {
-                       $altParam.= ' title="'.htmlspecialchars(strip_tags($titleText)).'"';
+                       $altParam.= ' title="'.htmlspecialchars($titleText).'"';
                } elseif (!$titleText && $emptyTitleHandling == 'useAlt')       {
-                       $altParam.= ' title="'.htmlspecialchars(strip_tags($altText)).'"';
+                       $altParam.= ' title="'.htmlspecialchars($altText).'"';
                }
 
                        // "longDesc" URL
index 95aef26..293fd64 100755 (executable)
@@ -385,6 +385,7 @@ tt_content.image.20 {
                altText = TEXT
                altText {
                        field = altText
+                       stripHtml = 1
                        split.token.char = 10
                        split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
                        split.returnKey.data = register : IMAGE_NUM_CURRENT