mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-14137, replace htmlentities with htmlspecialchars, merged from MOODLE_19_STABLE
This commit is contained in:
parent
f9f9be7374
commit
5bf2650871
@ -1812,7 +1812,7 @@ function data_presets_export($course, $cm, $data) {
|
||||
|
||||
$presetxml .= "<settings>\n";
|
||||
foreach ($settingssaved as $setting) {
|
||||
$presetxml .= "<$setting>".htmlentities($data->$setting)."</$setting>\n";
|
||||
$presetxml .= "<$setting>".htmlspecialchars($data->$setting, ENT_QUOTES)."</$setting>\n";
|
||||
}
|
||||
$presetxml .= "</settings>\n\n";
|
||||
|
||||
@ -1822,7 +1822,7 @@ function data_presets_export($course, $cm, $data) {
|
||||
$presetxml .= "<field>\n";
|
||||
foreach ($field as $key => $value) {
|
||||
if ($value != '' && $key != 'id' && $key != 'dataid') {
|
||||
$presetxml .= "<$key>".htmlentities($value)."</$key>\n";
|
||||
$presetxml .= "<$key>".htmlspecialchars($value, ENT_QUOTES)."</$key>\n";
|
||||
}
|
||||
}
|
||||
$presetxml .= "</field>\n\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user