mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +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. */
|
/** A default sanitizer that considers numeric and boolean typed data safe for writing to output. */
|
||||||
private class DefaultXSSSanitizer extends XssSanitizer {
|
private class DefaultXSSSanitizer extends XssSanitizer {
|
||||||
DefaultXSSSanitizer() {
|
DefaultXSSSanitizer() {
|
||||||
this.getType() instanceof NumericType or this.getType() instanceof BooleanType
|
this.getType() instanceof NumericType or
|
||||||
or
|
this.getType() instanceof BooleanType or
|
||||||
// Match `org.springframework.web.util.HtmlUtils.htmlEscape` and possibly other methods like it.
|
// Match `org.springframework.web.util.HtmlUtils.htmlEscape` and possibly other methods like it.
|
||||||
this.asExpr().(MethodAccess).getMethod().getName().regexpMatch("(?i)html_?escape.*")
|
this.asExpr().(MethodAccess).getMethod().getName().regexpMatch("(?i)html_?escape.*")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user