зеркало из https://github.com/mozilla/pjs.git
Bug 332459 - management interface doesn't interpret form input as UTF-8 correctly, r=morgamic
This commit is contained in:
Родитель
a2d6e37283
Коммит
6acd04154b
|
@ -71,12 +71,14 @@ function escape_string($value)
|
|||
|
||||
//Remove HTML tags and escape enities from GET/POST vars.
|
||||
foreach ($_GET as $key => $val) {
|
||||
$_GET["$key"] = htmlentities(str_replace("\\","",strip_tags($_GET["$key"])));
|
||||
$_GET["$key"] = htmlentities(str_replace("\\","",strip_tags($_GET["$key"])),
|
||||
ENT_COMPAT, 'UTF-8');
|
||||
}
|
||||
|
||||
foreach ($_POST as $key => $val) {
|
||||
if (!is_array($_POST["$key"])) {
|
||||
$_POST["$key"] = htmlentities(str_replace("\\","",strip_tags($_POST["$key"])));
|
||||
$_POST["$key"] = htmlentities(str_replace("\\","",strip_tags($_POST["$key"])),
|
||||
ENT_COMPAT, 'UTF-8');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче