From 2597e404590f2a839fcbbffb572542ab8a6b2310 Mon Sep 17 00:00:00 2001 From: James French Date: Mon, 4 Mar 2013 17:07:12 +0800 Subject: [PATCH] Apparently the facebook key can have non alphanumeric stuff in it. Who knew? --- fbcal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1