Skip to content

Commit aa10ad6

Browse files
committed
Python: Fix RegexInjection query, add old deprecated versions
1 parent e82ea7a commit aa10ad6

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** DEPRECATED: use semmle.python.security.dataflow.RegexInjection instead. */
2+
3+
private import semmle.python.security.dataflow.RegexInjection as New
4+
5+
/** DEPRECATED: use semmle.python.security.dataflow.RegexInjection instead. */
6+
deprecated module RegexInjection = New::RegexInjection;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** DEPRECATED: use semmle.python.security.dataflow.RegexInjectionCustomizations instead. */
2+
3+
private import semmle.python.security.dataflow.RegexInjectionCustomizations as New
4+
5+
/** DEPRECATED: use semmle.python.security.dataflow.RegexInjectionCustomizations instead. */
6+
deprecated module RegexInjection = New::RegexInjection;

python/ql/src/Security/CWE-730/RegexInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import python
1616
private import semmle.python.Concepts
17-
import semmle.python.security.injection.RegexInjection
17+
import semmle.python.security.dataflow.RegexInjection
1818
import DataFlow::PathGraph
1919

2020
from

0 commit comments

Comments
 (0)