Fix xss vulnerability(escape html in item label)

This commit is contained in:
c5254061 2018-04-18 11:05:21 +03:00
parent d15ab02db8
commit c2fccdc398

View file

@ -1,4 +1,4 @@
import { getWidthOfInput } from '../lib/utils';
import { getWidthOfInput, stripHTML } from '../lib/utils';
export default class Input {
constructor(instance, element, classNames) {
@ -145,7 +145,7 @@ export default class Input {
}
getValue() {
return this.element.value;
return stripHTML(this.element.value);
}
setActiveDescendant(activeDescendantID) {