We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa1b6f commit 4a7bfbeCopy full SHA for 4a7bfbe
python/ql/src/semmle/python/web/django/Response.qll
@@ -65,7 +65,7 @@ class DjangoResponseContentXSSVulnerable extends DjangoResponseContent {
65
or
66
exists(StringValue s |
67
cls.getContentTypeArg(call).pointsTo(s) and
68
- s.getText().indexOf("text/html") = 0
+ s.getText().matches("text/html%")
69
)
70
}
71
0 commit comments