X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=fbcal.py;fp=fbcal.py;h=6e6c9f7e1b22fb3fb30edb721295b901698f6d84;hb=2597e404590f2a839fcbbffb572542ab8a6b2310;hp=8068f5e764bba4b7001cdcc13cf4fd1824fbba02;hpb=5dc6aee6a1edf911312f0d7fea022dd44410bd42;p=frenchie%2Ficalparse.git diff --git a/fbcal.py b/fbcal.py index 8068f5e..6e6c9f7 100755 --- a/fbcal.py +++ b/fbcal.py @@ -42,9 +42,9 @@ if __name__ == '__main__': except: exitQuiet() - # The user's key will be a 16 character alphanumeric string + # The user's key will be a 16 character string key = form['key'].value - re.search('[\W_]+', key) and exitQuiet() + re.search('[&?]+', key) and exitQuiet() len(key) == 16 or exitQuiet() # Okay, we're happy that the input is sane, lets serve up some data