Project

General

Profile

Actions

Bug #20655

closed

Mailform: Message in javascript-Alertbox corrupt

Added by Jochen about 15 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16164: Old Gremlin: Mail Form validation: solution of wrong Russian chars in JS pop-upClosedFrancois Suter2006-05-21

Actions
Actions

Also available in: Atom PDF