legacy_html_escape_form_data() add ENT_QUOTES to avoid certain escaping issues

This commit is contained in:
Ad Schellevis 2019-02-26 19:58:42 +01:00
parent 30931e5d6d
commit b24e7acf3f

View File

@ -76,7 +76,7 @@ function legacy_html_escape_form_data(&$settings)
if (is_array($dataValue)) {
legacy_html_escape_form_data($dataValue);
} else {
$settings[$dataKey] = htmlspecialchars($dataValue);
$settings[$dataKey] = htmlspecialchars($dataValue, ENT_QUOTES);
}
}
}