We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dce2eb commit ec4c820Copy full SHA for ec4c820
python/ql/lib/semmle/python/security/dataflow/HttpHeaderInjectionCustomizations.qll
@@ -107,7 +107,7 @@ module HttpHeaderInjection {
107
class ReplaceLineBreaksSanitizer extends Sanitizer, DataFlow::CallCfgNode {
108
ReplaceLineBreaksSanitizer() {
109
this.getFunction().(DataFlow::AttrRead).getAttributeName() = "replace" and
110
- this.getArg(0).asExpr().(StrConst).getText() = "\n"
+ this.getArg(0).asExpr().(StringLiteral).getText() = "\n"
111
}
112
113
0 commit comments