Fix deprecation

This commit is contained in:
Joe Farebrother
2024-04-23 11:30:38 +01:00
parent 1dce2eb325
commit ec4c820391

View File

@@ -107,7 +107,7 @@ module HttpHeaderInjection {
class ReplaceLineBreaksSanitizer extends Sanitizer, DataFlow::CallCfgNode {
ReplaceLineBreaksSanitizer() {
this.getFunction().(DataFlow::AttrRead).getAttributeName() = "replace" and
this.getArg(0).asExpr().(StrConst).getText() = "\n"
this.getArg(0).asExpr().(StringLiteral).getText() = "\n"
}
}
}