File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
import sys
6
6
7
7
version_info = (0 , 1 , 1 )
8
- __version__ = '0.1.1+dd.3 '
8
+ __version__ = '0.1.1+dd.4 '
9
9
10
10
11
11
def stringify (node ):
@@ -77,7 +77,8 @@ def check_execute(self, node):
77
77
78
78
def visit_Call (self , node ):
79
79
function_name = stringify (node .func )
80
- if '.execute' in function_name .lower ():
80
+ # catch and check aliases of session.execute and cursor.execute
81
+ if function_name .lower ().endswith ('.execute' ):
81
82
try :
82
83
node .args [0 ].parent = node
83
84
node_error = self .check_execute (node .args [0 ])
Original file line number Diff line number Diff line change 3
3
4
4
setup (
5
5
name = "py-find-injection" ,
6
- version = "0.1.1+dd.3 " ,
6
+ version = "0.1.1+dd.4 " ,
7
7
author = "James Brown" ,
8
8
author_email = "jbrown@uber.com" ,
9
9
url = "https://github.com/uber/py-find-injection" ,
You can’t perform that action at this time.
0 commit comments