-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django's RawSQL
raises error if you use kwargs rather than args
#764
Labels
bug
Something isn't working
Comments
kevinmarsh
added a commit
to kevinmarsh/bandit
that referenced
this issue
Dec 13, 2021
Fix rule B611: django_rawsql_used breaking when a user passes in keyword arguments to Django's `RawSQL`. Closes PyCQA#764
kevinmarsh
added a commit
to kevinmarsh/bandit
that referenced
this issue
Jan 31, 2022
Fix rule B611: django_rawsql_used breaking when a user passes in keyword arguments to Django's `RawSQL`. Resolves: PyCQA#764
kevinmarsh
added a commit
to kevinmarsh/bandit
that referenced
this issue
Jun 6, 2022
Fix rule B611: django_rawsql_used breaking when a user passes in keyword arguments to Django's `RawSQL`. Resolves: PyCQA#764
kevinmarsh
added a commit
to kevinmarsh/bandit
that referenced
this issue
Jul 24, 2023
Fix rule B611: django_rawsql_used breaking when a user passes in keyword arguments to Django's `RawSQL`. Resolves: PyCQA#764
sigmavirus24
pushed a commit
that referenced
this issue
Jul 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
An
IndexError: list index out of range
error is raised if you try to run banditRawSQL
with keyword arguments:but runs as expected on positional args:
Reproduction steps
Expected behavior
Positional args and keyword args should both be supported
Bandit version
1.7.1 (Default)
Python version
3.9 (Default)
Additional context
No response
The text was updated successfully, but these errors were encountered: