Fixed bug #12899: Wrong usage of CDATA raise javascript error
authorSteffen Kamper <info@sk-typo3.de>
Fri, 4 Dec 2009 23:33:46 +0000 (23:33 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 4 Dec 2009 23:33:46 +0000 (23:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6629 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tsstyleconfig.php

index 224e3c4..3c6d0d7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-12-02  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #12899: Wrong usage of CDATA raise javascript error
        * Fixed bug #12863: t3lib_cs::convArray converts integers to string
 
 2009-12-02  Steffen Kamper  <info@sk-typo3.de>
index 6e5839b..a14f4ef 100644 (file)
@@ -169,13 +169,11 @@ class t3lib_tsStyleConfig extends t3lib_tsparser_ext      {
                $printFields = trim($this->ext_printFields($theConstants,$cat));
 
                $content='';
-               $content.='
-               <script language="javascript" type="text/javascript"><![CDATA[
-                       function uFormUrl(aname)        {
-                               document.'.$this->ext_CEformName.'.action = "'.t3lib_div::linkThisScript().'#"+aname;
+               $content .= t3lib_div::wrapJS('
+                       function uFormUrl(aname) {
+                               document.' . $this->ext_CEformName . '.action = "' . t3lib_div::linkThisScript() . '#"+aname;
                        }
-               ]]</script>
-               ';
+               ');
                $content .= '<form action="' . htmlspecialchars($script ? $script : t3lib_div::linkThisScript()) . '" name="' . $this->ext_CEformName . '" method="post" enctype="' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'] . '">';
                $content.= $addFields;
                $content.= $printFields;