Skip to content

Commit

Permalink
fix: django request methods
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed May 10, 2024
1 parent 34f7b5d commit 195151a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rules/python/shared/django/user_input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ type: shared
languages:
- python
patterns:
- request.$<_>
- request.$<_>()
- request.$<_>.$<_>()
- pattern: request.$<METHOD>.get()
filters:
- variable: METHOD
regex: (?i)\A(post|files|get|data|query_params|content_type|stream)\z
- pattern: request.$<METHOD>[$<_>]
filters:
- variable: METHOD
regex: (?i)\A(post|files|get|data|query_params|content_type|stream)\z
- pattern: $<FORM>.$<METHOD>[$<_>]
filters:
- variable: FORM
Expand Down

0 comments on commit 195151a

Please sign in to comment.