N°6349 - Hardening code

This commit is contained in:
Eric Espie
2023-06-01 16:36:56 +02:00
parent 17d22219d2
commit e3ba826e5d

View File

@@ -779,7 +779,7 @@ try {
foreach ($aShortcutClasses as $cShortcutPlugin) {
foreach ($cShortcutPlugin::GetShortcutKeys() as $aShortcutKey) {
$sKey = utils::ReadParam($aShortcutKey['id'], $aShortcutKey['key'], true, 'raw_data');
$aShortcutPrefs[$aShortcutKey['id']] = strtolower($sKey);
$aShortcutPrefs[$aShortcutKey['id']] = strtolower(utils::HtmlEntities($sKey));
}
}
appUserPreferences::SetPref('keyboard_shortcuts', $aShortcutPrefs);