Skip to content

Commit

Permalink
SANITIZE THE HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV committed Nov 24, 2024
1 parent e4f09d0 commit 6d72d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play.pokemonshowdown.com/js/client-mainmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
options.noMinimize = options.noMinimize || false;

this.$pmBox[options.append ? 'append' : 'prepend']('<div class="pm-window ' + options.cssClass + '" ' + options.attributes + '><h3><button class="closebutton" tabindex="-1" aria-label="Close"><i class="fa fa-times-circle"></i></button>' + (!options.noMinimize ? '<button class="minimizebutton" tabindex="-1" aria-label="Minimize"><i class="fa fa-minus-circle"></i></button>' : '') + options.title + '</h3><div class="pm-log" style="overflow:visible;height:' + (typeof options.height === 'number' ? options.height + 'px' : options.height) + ';' + (parseInt(options.height, 10) ? 'max-height:none' : (options.maxHeight ? 'max-height:' + (typeof options.maxHeight === 'number' ? options.maxHeight + 'px' : options.maxHeight) : '')) + '">' +
options.html +
BattleLog.sanitizeHTML(options.html) +
'</div></div>');
},

Expand Down

0 comments on commit 6d72d55

Please sign in to comment.