mirror of
https://github.com/zoriya/flake.git
synced 2026-06-04 19:26:09 +00:00
Allow leading newlines in python's sql injections
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
|
||||
(string
|
||||
(string_content) @injection.content
|
||||
(#match? @injection.content "\\s*(SELECT|CREATE|DROP|INSERT|UPDATE|ALTER|DELETE|select|create|drop|insert|update|alter|delete)\\W+")
|
||||
(#match? @injection.content "^\n*\\s*(SELECT|CREATE|DROP|INSERT|UPDATE|ALTER|DELETE|select|create|drop|insert|update|alter|delete)\\W+")
|
||||
(#set! injection.language "sql"))
|
||||
|
||||
Reference in New Issue
Block a user