mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix 1292 - Avoid XSS (#1297)
* Fix 1292 - Avoid XSS * Fix XSS on EffectConfiguration
This commit is contained in:
@@ -1206,3 +1206,7 @@ function showInputOptionsForKey(editor, item, showForKeys, state) {
|
||||
}
|
||||
showInputOptions(item, elements, state);
|
||||
}
|
||||
|
||||
function encodeHTML(s) {
|
||||
return s.replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"');
|
||||
}
|
||||
|
Reference in New Issue
Block a user