fix issue #120, tag in whiteList should be replaced with whiteList.hasOwnProperty(tag)
This commit is contained in:
@@ -148,7 +148,7 @@ FilterXSS.prototype.process = function(html) {
|
||||
sourcePosition: sourcePosition,
|
||||
position: position,
|
||||
isClosing: isClosing,
|
||||
isWhite: tag in whiteList
|
||||
isWhite: whiteList.hasOwnProperty(tag)
|
||||
};
|
||||
|
||||
// call `onTag()`
|
||||
|
||||
Reference in New Issue
Block a user