use of all normalization forms without the ":" prefix

This commit is contained in:
Sim4n6
2023-05-20 17:59:08 +01:00
parent f5ff50880c
commit ad754f1385

View File

@@ -50,7 +50,7 @@ class Configuration extends TaintTracking::Configuration {
override predicate isSink(DataFlow::Node sink, DataFlow::FlowState state) {
exists(DataFlow::CallNode cn |
cn.getMethodName() = "unicode_normalize" and
cn.getArgument(0).getConstantValue().getSymbol() = [":nfkc", ":nfc", ":nfkd", ":nfd"] and
cn.getArgument(0).getConstantValue().getSymbol() = ["nfkc", "nfc", "nfkd", "nfd"] and
sink = cn.getReceiver()
) and
state instanceof PostValidation