Skip to content

Commit

Permalink
Catch case where SELECT is followed immediately by a newline.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lamb <chris@playfire.com>
  • Loading branch information
lamby committed Mar 7, 2011
1 parent 61ab96e commit 485f4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pedantic_http_methods/models.py
Expand Up @@ -87,7 +87,7 @@ def example(request):

import app_settings

re_select = re.compile(r'\s*SELECT ', re.IGNORECASE)
re_select = re.compile(r'\s*SELECT\b', re.IGNORECASE)

class IncorrectHTTPMethod(Exception):
def __init__(self, sql):
Expand Down

0 comments on commit 485f4d8

Please sign in to comment.