Python: Use .matches instead of .indexOf() = 0

This commit is contained in:
Rasmus Wriedt Larsen
2020-07-02 11:43:23 +02:00
parent daa1b6fc79
commit 4a7bfbe091

View File

@@ -65,7 +65,7 @@ class DjangoResponseContentXSSVulnerable extends DjangoResponseContent {
or
exists(StringValue s |
cls.getContentTypeArg(call).pointsTo(s) and
s.getText().indexOf("text/html") = 0
s.getText().matches("text/html%")
)
}
}