mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Fix XSS in Skill Swap code
This commit is contained in:
@@ -4038,10 +4038,10 @@ function Battle(frame, logFrame, noPreload) {
|
||||
case 'skillswap':
|
||||
actions += "" + poke.getName() + " swapped Abilities with its target!";
|
||||
if (ofpoke && poke.side !== ofpoke.side) {
|
||||
self.resultAnim(poke, args[3], 'neutral', 1);
|
||||
self.resultAnim(ofpoke, args[4], 'neutral', 4);
|
||||
actions += "<br />" + poke.getName() + " acquired " + args[3] + "!";
|
||||
actions += "<br />" + ofpoke.getName() + " acquired " + args[4] + "!";
|
||||
self.resultAnim(poke, Tools.escapeHTML(args[3]), 'neutral', 1);
|
||||
self.resultAnim(ofpoke, Tools.escapeHTML(args[4]), 'neutral', 4);
|
||||
actions += "<br />" + poke.getName() + " acquired " + Tools.escapeHTML(args[3]) + "!";
|
||||
actions += "<br />" + ofpoke.getName() + " acquired " + Tools.escapeHTML(args[4]) + "!";
|
||||
}
|
||||
break;
|
||||
case 'charge':
|
||||
|
||||
Reference in New Issue
Block a user