Actions
Bug #20655
closedMailform: Message in javascript-Alertbox corrupt
Start date:
2009-06-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In the javascript alertbox that is shown when mandatory fields are not filled in, the labels of the fields are listed.
They are badly encoded, language specific non-ascii chars (eg. german öää) are corrupt.
In the file
t3lib/jsfunc.validateform.js
replace
unescape => decodeURIComponent
and never ever use unescape to decode urls/components again. This is the wrong function for that purpose.
As there may be html code in, a striptags and/or translate entities might be useful as well.
(issue imported from #M11385)
Updated by Christian Kuhn about 15 years ago
Actions