Skip to content

Commit 5caff81

Browse files
committed
import all the frameworks that extend RegexString
1 parent b959705 commit 5caff81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/ql/lib/semmle/python/regex.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ deprecated string mode_from_mode_object(Value obj) {
111111
)
112112
}
113113

114+
// importing all the frameworks that extend `RegexString`.
115+
private import semmle.python.frameworks.Django as Django1
116+
private import semmle.python.frameworks.Tornado as Tornado1
117+
private import semmle.python.web.django.General as Django2
118+
114119
/** A StrConst used as a regular expression */
115120
abstract class RegexString extends Expr {
116121
RegexString() { (this instanceof Bytes or this instanceof Unicode) }

0 commit comments

Comments
 (0)