mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Abstract Xss sanitizer
Turn the Xss sanitizer into an abstract class to support customizations and provide a default implementation.
This commit is contained in:
@@ -22,9 +22,7 @@ class XSSConfig extends TaintTracking::Configuration {
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) { sink instanceof XssSink }
|
||||
|
||||
override predicate isSanitizer(DataFlow::Node node) {
|
||||
node.getType() instanceof NumericType or node.getType() instanceof BooleanType
|
||||
}
|
||||
override predicate isSanitizer(DataFlow::Node node) { node instanceof XssSanitizer }
|
||||
}
|
||||
|
||||
from DataFlow::PathNode source, DataFlow::PathNode sink, XSSConfig conf
|
||||
|
||||
Reference in New Issue
Block a user