提交 f4930013 编写于 作者: J Josh Schmidt

escape() instead of String() to prevent XSS and ensure correct formatting

上级 17c16277
......@@ -72,9 +72,9 @@
},
option: function(data,escape){
if( data.customProperties ){
return '<div><span class="dropdown-item-indicator">' + data.customProperties + '</span>' + String(data.text) + '</div>';
return '<div><span class="dropdown-item-indicator">' + data.customProperties + '</span>' + escape(data.text) + '</div>';
}
return '<div>' + String(data.text) + '</div>';
return '<div>' + escape(data.text) + '</div>';
},
},
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册