We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93f91d8 commit ddd362bCopy full SHA for ddd362b
python/ql/src/semmle/python/frameworks/Django.qll
@@ -2314,6 +2314,13 @@ private module Django {
2314
2315
DjangoShortcutsRedirectCall() { node.getFunction() = django::shortcuts::redirect().asCfgNode() }
2316
2317
+ /**
2318
+ * Gets the data-flow node that specifies the location of this HTTP redirect response.
2319
+ *
2320
+ * Note: For `django.shortcuts.redirect`, the result might not be a full URL
2321
+ * (as usually expected by this method), but could be a relative URL,
2322
+ * a string identifying a view, or a Django model.
2323
+ */
2324
override DataFlow::Node getRedirectLocation() {
2325
result.asCfgNode() in [node.getArg(0), node.getArgByName("to")]
2326
}
0 commit comments