separate message for double and single quotes

This commit is contained in:
Erik Krogh Kristensen
2021-02-01 23:54:12 +01:00
parent 3f1e81533c
commit ca435763b0
3 changed files with 65 additions and 48 deletions

View File

@@ -23,7 +23,9 @@ abstract class IncompleteBlacklistSanitizer extends DataFlow::Node {
* Describes the characters represented by `rep`.
*/
string describeCharacters(string rep) {
rep = ["\"", "'"] and result = "quotes"
rep = "\"" and result = "double quotes"
or
rep = "'" and result = "single quotes"
or
rep = "&" and result = "ampersands"
or