Skip to content

Commit dbb55ff

Browse files
committed
Ruby: fix xpathinjection deprecation warnings
1 parent c000937 commit dbb55ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/security/XpathInjectionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ module XpathInjection {
2323
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2424
}
2525

26-
import TaintTracking::Make<Config>
26+
import TaintTracking::Global<Config>
2727
}

ruby/ql/src/experimental/xpath-injection/XpathInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ import codeql.ruby.security.XpathInjectionQuery
1616
import XpathInjection::PathGraph
1717

1818
from XpathInjection::PathNode source, XpathInjection::PathNode sink
19-
where XpathInjection::hasFlowPath(source, sink)
19+
where XpathInjection::flowPath(source, sink)
2020
select sink.getNode(), source, sink, "XPath expression depends on a $@.", source.getNode(),
2121
"user-provided value"

0 commit comments

Comments
 (0)