git.ucc.asn.au
/
frenchie
/
icalparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apparently the facebook key can have non alphanumeric stuff in it. Who knew?
[frenchie/icalparse.git]
/
fbcal.py
diff --git
a/fbcal.py
b/fbcal.py
index
8068f5e
..
6e6c9f7
100755
(executable)
--- a/
fbcal.py
+++ b/
fbcal.py
@@
-42,9
+42,9
@@
if __name__ == '__main__':
except:
exitQuiet()
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
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
len(key) == 16 or exitQuiet()
# Okay, we're happy that the input is sane, lets serve up some data
UCC
git Repository :: git.ucc.asn.au