We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1115af commit 880b35eCopy full SHA for 880b35e
ruby/ql/lib/codeql/ruby/security/XSS.qll
@@ -298,7 +298,10 @@ private module OrmTracking {
298
Shared::isAdditionalXssFlowStep(node1, node2)
299
}
300
301
- predicate isBarrierIn(DataFlow::Node node) { node instanceof DataFlow::SelfParameterNode }
+ predicate isBarrierIn(DataFlow::Node node) {
302
+ node instanceof DataFlow::SelfParameterNode and
303
+ not node.getLocation().getFile() instanceof ErbFile
304
+ }
305
306
307
import DataFlow::Global<Config>
0 commit comments