mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
separate message for double and single quotes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user