[TYPO3-core] RFC: #3527: Bug: Wrongly encoded characters in mail form validation popup
Christian Kuhn
lolli at schwarzbu.ch
Thu Apr 9 17:40:19 CEST 2009
Hey Francois,
Francois Suter wrote:
> Hi,
>
>> Yes, but ONLY if tslib_content does something like that:#
>>
>> $content = <<<EOT
>> <script>
>> var dummy = '$foobar';
>> </script>
>> EOT;
>>
>> Ie. it creates a JS string embedded in the HTML code. In this case the
>> browser should handle the charset all by itself.
>
> That's the case. The "onSubmit" call is prepared by tslib_content and
> added to the HTML of the FORM.
>
>> Really old browser that require unescape() to handle latin1 will choke
>> on utf8 no matter what you do :)
>
> Yes, but I think it's reasonable to forget about those.
>
> So here's new patch removing calls to rawurlencode() in tslib_content
> and all calls to unescape() in the validateForm JS.
>
> Hoping I'm on the right track this time.
+1 on testing: Opera 9.64, FF3, IE6 all work fine in trunk and 4.2.
This bug nagged be for years, thank Francois.
I can't give +1 on reading because I don't fully understand the
different dependencies, maybe Masi could take a final look.
Regards
Christian
More information about the TYPO3-team-core
mailing list