Fix 1292 - Avoid XSS (#1297)

* Fix 1292 - Avoid XSS

* Fix XSS on EffectConfiguration
This commit is contained in:
LordGrey
2021-08-19 08:52:17 +02:00
committed by GitHub
parent 0227694d20
commit bd3e12d3ac
5 changed files with 11 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
$(document).ready(function () {
performTranslation();
// update instance listing
updateHyperionInstanceListing();
// update instance listing
updateHyperionInstanceListing();
var oldDelList = [];
var effectName = "";
@@ -120,7 +120,7 @@ $(document).ready(function () {
// disable or enable control elements
$("#name-input").on('change keyup', function (event) {
effectName = $(this).val();
effectName = encodeHTML($(this).val());
if ($(this).val() == '') {
effects_editor.disable();
$("#eff_footer").children().attr('disabled', true);