From: W. Trevor King Date: Fri, 29 Aug 2008 08:43:29 +0000 (-0400) Subject: Dropping flegling regexp validation X-Git-Tag: 0.3~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=81b010dceb31994a3d534dee27fbd389a96916a5;p=chemdb.git Dropping flegling regexp validation How would you validate it anyway? It's already a string... --- diff --git a/chem_web.py b/chem_web.py index 9dc68f0..5494e6e 100755 --- a/chem_web.py +++ b/chem_web.py @@ -189,11 +189,9 @@ class docs (object) : db._refresh() formdata = web.input() user_regexp = formdata['regexp'] - regexp = re.compile(self.validate_string(user_regexp), 'I') # Case insensitive + regexp = re.compile(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 class login (object) : "Print an alphabetized index of all existing pages"