mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Autoformat
This commit is contained in:
@@ -93,8 +93,8 @@ private class DefaultXssSink extends XssSink {
|
||||
/** A default sanitizer that considers numeric and boolean typed data safe for writing to output. */
|
||||
private class DefaultXSSSanitizer extends XssSanitizer {
|
||||
DefaultXSSSanitizer() {
|
||||
this.getType() instanceof NumericType or this.getType() instanceof BooleanType
|
||||
or
|
||||
this.getType() instanceof NumericType or
|
||||
this.getType() instanceof BooleanType or
|
||||
// Match `org.springframework.web.util.HtmlUtils.htmlEscape` and possibly other methods like it.
|
||||
this.asExpr().(MethodAccess).getMethod().getName().regexpMatch("(?i)html_?escape.*")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user