Skip to content

Commit 1503c5e

Browse files
committed
Python: Remove refersTo from regex.qll
This was causing the old `Object` API stuff to be evaluated when using our new library models (specifically the Django model).
1 parent a6abee9 commit 1503c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/regex.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ predicate used_as_regex(Expr s, string mode) {
2727
(s instanceof Bytes or s instanceof Unicode) and
2828
/* Call to re.xxx(regex, ... [mode]) */
2929
exists(CallNode call, string name |
30-
call.getArg(0).refersTo(_, _, s.getAFlowNode()) and
30+
call.getArg(0).pointsTo(_, _, s.getAFlowNode()) and
3131
call.getFunction().pointsTo(Module::named("re").attr(name)) and
3232
not name = "escape"
3333
|

0 commit comments

Comments
 (0)