db._refresh()
formdata = web.input()
user_regexp = formdata['regexp']
- regexp = self.validate_string(user_regexp)
- path = dgen.door_warning(lambda r: r['Location'] == regexp ) # no regexp matching yet, work in progress
+ regexp = re.compile(self.validate_string(user_regexp), 'I') # Case insensitive
+ path = dgen.door_warning(lambda r: regexp.match(r['Location']))
print file(path, 'rb').read() ,
def validate_string(self, string): # work in progress
return string