Revision 2570
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
107 | 107 |
|
108 | 108 |
##### Input validation |
109 | 109 |
|
110 |
def check_name(name): |
|
111 |
if re.search(r'\W', name) != None: raise NameException('Name "'+name |
|
112 |
+'" may contain only alphanumeric characters and _') |
|
113 |
|
|
114 | 110 |
def esc_name_by_module(module, name, ignore_case=False): |
115 | 111 |
if module == 'psycopg2' or module == None: |
116 | 112 |
if ignore_case and is_safe_name(name): |
Also available in: Unified diff
sql.py: Removed no longer needed check_name()