File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
python/ql/src/semmle/python/web/django Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ class DjangoShortcutsRedirectSink extends HttpRedirectTaintSink {
21
21
}
22
22
}
23
23
24
+ /** DEPRECATED: Use `DjangoShortcutsRedirectSink` instead. */
25
+ deprecated class DjangoRedirect = DjangoShortcutsRedirectSink ;
26
+
24
27
/**
25
28
* The URL argument when instantiating a Django Redirect Response.
26
29
*/
Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ import semmle.python.security.strings.Basic
4
4
private import semmle.python.web.django.Shared
5
5
private import semmle.python.web.Http
6
6
7
+ /**
8
+ * DEPRECATED: This class is internal to the django library modeling, and should
9
+ * never be used by anyone.
10
+ *
11
+ * A django.http.response.Response object
12
+ * This isn't really a "taint", but we use the value tracking machinery to
13
+ * track the flow of response objects.
14
+ */
15
+ deprecated class DjangoResponse = DjangoResponseKind ;
16
+
7
17
/** INTERNAL class used for tracking a django response object. */
8
18
private class DjangoResponseKind extends TaintKind {
9
19
DjangoResponseKind ( ) { this = "django.response.HttpResponse" }
Original file line number Diff line number Diff line change 1
1
import python
2
2
3
+ /** DEPRECATED: Use `Value::named("django.shortcuts.redirect")` instead. */
4
+ deprecated FunctionValue redirect ( ) { result = Value:: named ( "django.shortcuts.redirect" ) }
5
+
6
+ /** DEPRECATED: Use `DjangoRedirectResponseClass` instead. */
7
+ deprecated ClassValue theDjangoHttpRedirectClass ( ) {
8
+ // version 1.x
9
+ result = Value:: named ( "django.http.response.HttpResponseRedirectBase" )
10
+ or
11
+ // version 2.x
12
+ result = Value:: named ( "django.http.HttpResponseRedirectBase" )
13
+ }
14
+
3
15
/** A class that is a Django Redirect Response (subclass of `django.http.HttpResponseRedirectBase`). */
4
16
class DjangoRedirectResponseClass extends ClassValue {
5
17
DjangoRedirectResponseClass ( ) {
You can’t perform that action at this time.
0 commit comments