diff --git a/pages/preferences.php b/pages/preferences.php index adf2929c3..8359ad4e0 100644 --- a/pages/preferences.php +++ b/pages/preferences.php @@ -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);