Skip to content

Commit f500e5b

Browse files
committed
Use Expr::getValueText
1 parent eafe22e commit f500e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module UnsafeDeserialization {
7474
}
7575

7676
private predicate isOjModePair(Pair p, string modeValue) {
77-
p.getKey().(SymbolLiteral).getValueText() = "mode" and
77+
p.getKey().getValueText() = "mode" and
7878
exists(DataFlow::LocalSourceNode symbolLiteral, DataFlow::Node value |
7979
symbolLiteral.asExpr().getExpr().(SymbolLiteral).getValueText() = modeValue and
8080
symbolLiteral.flowsTo(value) and

0 commit comments

Comments
 (0)