From 689fb1035dc997cd9a31b08bed68b3eadc48ea14 Mon Sep 17 00:00:00 2001 From: elsapet Date: Fri, 10 May 2024 10:18:17 +0200 Subject: [PATCH] feat(python): add user input --- rules/python/shared/common/external_input.yml | 2 +- rules/python/shared/common/user_input.yml | 2 +- rules/python/shared/django/user_input.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rules/python/shared/common/external_input.yml b/rules/python/shared/common/external_input.yml index 49700a2a..acc705a5 100644 --- a/rules/python/shared/common/external_input.yml +++ b/rules/python/shared/common/external_input.yml @@ -17,4 +17,4 @@ patterns: scope: cursor_strict metadata: description: Python externally influenced (user or dynamic) input. - id: python_shared_common_external_input + id: python_shared_common_external_input \ No newline at end of file diff --git a/rules/python/shared/common/user_input.yml b/rules/python/shared/common/user_input.yml index b5348078..f72c6f95 100644 --- a/rules/python/shared/common/user_input.yml +++ b/rules/python/shared/common/user_input.yml @@ -16,4 +16,4 @@ patterns: scope: cursor metadata: description: "Python user input." - id: python_shared_common_user_input + id: python_shared_common_user_input \ No newline at end of file diff --git a/rules/python/shared/django/user_input.yml b/rules/python/shared/django/user_input.yml index 4f33827c..1515a664 100644 --- a/rules/python/shared/django/user_input.yml +++ b/rules/python/shared/django/user_input.yml @@ -5,8 +5,8 @@ patterns: - request.$<_> - request.$<_>() - request.$<_>.$<_>() - - pattern: $
.$() - filters: + - pattern: $.$[$<_>] + filters: - variable: FORM regex: \A(un)?(bound_)?form\z - variable: METHOD @@ -20,4 +20,4 @@ patterns: regex: \A(un)?(bound_)?form\z metadata: description: "Django user input." - id: python_shared_django_user_input + id: python_shared_django_user_input \ No newline at end of file