Revision 2331
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
100 | 100 |
|
101 | 101 |
##### Input validation |
102 | 102 |
|
103 |
def clean_name(name): return re.sub(r'\W', r'', name).lower() |
|
104 |
|
|
105 | 103 |
def check_name(name): |
106 | 104 |
if re.search(r'\W', name) != None: raise NameException('Name "'+name |
107 | 105 |
+'" may contain only alphanumeric characters and _') |
Also available in: Unified diff
sql.py: Removed no longer used clean_name()