Skip to content

Commit ad5c1f9

Browse files
committed
ql format
1 parent d7b5e4c commit ad5c1f9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,20 @@ private module Shared {
185185
}
186186

187187
pragma[noinline]
188-
private predicate isHelperMethodNameMatch(ActionControllerHelperMethod helperMethod, MethodCall call) {
188+
private predicate isHelperMethodNameMatch(
189+
ActionControllerHelperMethod helperMethod, MethodCall call
190+
) {
189191
helperMethod.getName() = call.getMethodName()
190192
}
191193

192194
private predicate isFlowFromHelperMethod(DataFlow::Node node1, DataFlow::Node node2) {
193195
// flow out of controller helper method into template
194-
exists(ErbFile template |
195-
template = node2.getLocation().getFile() |
196+
exists(ErbFile template | template = node2.getLocation().getFile() |
196197
exists(ActionControllerHelperMethod helperMethod |
197198
helperMethod.getControllerClass() = getAssociatedControllerClass(template) and
198199
// `node1` is an expr node that may be returned by the helper method
199-
exprNodeReturnedFrom(node1, helperMethod) |
200+
exprNodeReturnedFrom(node1, helperMethod)
201+
|
200202
exists(CfgNodes::ExprNodes::MethodCallCfgNode helperMethodCall |
201203
// `node2` is a call to the helper method
202204
node2.asExpr() = helperMethodCall and

0 commit comments

Comments
 (0)