mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-16 08:55:03 -05:00
Fix XSS in Skill Swap code
This commit is contained in:
parent
4b6b1cefeb
commit
7e47ac8fc7
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user