Skip to content

Commit ec4c820

Browse files
Fix deprecation
1 parent 1dce2eb commit ec4c820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/security/dataflow/HttpHeaderInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module HttpHeaderInjection {
107107
class ReplaceLineBreaksSanitizer extends Sanitizer, DataFlow::CallCfgNode {
108108
ReplaceLineBreaksSanitizer() {
109109
this.getFunction().(DataFlow::AttrRead).getAttributeName() = "replace" and
110-
this.getArg(0).asExpr().(StrConst).getText() = "\n"
110+
this.getArg(0).asExpr().(StringLiteral).getText() = "\n"
111111
}
112112
}
113113
}

0 commit comments

Comments
 (0)