Skip to content

Commit 20b532e

Browse files
committed
Update to-cast sink's naming
Signed-off-by: jorgectf <[email protected]>
1 parent c0c71c5 commit 20b532e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/ql/src/experimental/Security/CWE-730/RegexInjection.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import DataFlow::PathGraph
1818

1919
from
2020
RegexInjectionFlowConfig config, DataFlow::PathNode source, DataFlow::PathNode sink,
21-
RegexInjectionSink castedSink, Attribute methodAttribute
21+
RegexInjectionSink regexInjectionSink, Attribute methodAttribute
2222
where
2323
config.hasFlowPath(source, sink) and
24-
castedSink = sink.getNode() and
25-
methodAttribute = castedSink.getRegexMethod()
24+
regexInjectionSink = sink.getNode() and
25+
methodAttribute = regexInjectionSink.getRegexMethod()
2626
select sink.getNode(), source, sink,
2727
"$@ regular expression is constructed from a $@ and executed by $@.", sink.getNode(), "This",
2828
source.getNode(), "user-provided value", methodAttribute,
29-
castedSink.getRegexModule() + "." + methodAttribute.getName()
29+
regexInjectionSink.getRegexModule() + "." + methodAttribute.getName()

0 commit comments

Comments
 (0)