未验证 提交 f7fe8c3b 编写于 作者: M Mr.doob 提交者: GitHub

Color: Fix ReDoS in setStyle

上级 1d4bc6d8
......@@ -163,7 +163,7 @@ class Color {
let m;
if ( m = /^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec( style ) ) {
if ( m = /^((?:rgb|hsl)a?)\(\s*([^\)\s]*)\)/.exec( style ) ) {
// rgb / hsl
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册