Skip to content

Commit

Permalink
fix XSS vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Nov 24, 2021
1 parent 707b803 commit ef13482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jquery.minicolors.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@
}
swatchString = swatch;
swatch = isRgb(swatch) ? parseRgb(swatch, true) : hex2rgb(parseHex(swatch, true));
$('<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color" title="' + name + '"></span></li>')
$('<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></li>')
.attr("title", name)
.appendTo(swatches)
.data('swatch-color', swatchString)
.find('.minicolors-swatch-color')
Expand Down
Loading

0 comments on commit ef13482

Please sign in to comment.