From 81b010dceb31994a3d534dee27fbd389a96916a5 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 29 Aug 2008 04:43:29 -0400 Subject: [PATCH] Dropping flegling regexp validation How would you validate it anyway? It's already a string... --- chem_web.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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" -- 2.26.2