Project

General

Profile

« Previous | Next » 

Revision 2492

sql.py: clean_name(): For clarity, just remove '"'s, so that "."s are preserved and show the path structure of the input name

View differences:

lib/sql.py
100 100

  
101 101
##### Input validation
102 102

  
103
def clean_name(name): return re.sub(r'\W', r'', name.replace('.', '_'))
103
def clean_name(name): return name.replace('"', '')
104 104

  
105 105
def check_name(name):
106 106
    if re.search(r'\W', name) != None: raise NameException('Name "'+name

Also available in: Unified diff