diff options
author | Lance Stout <lancestout@gmail.com> | 2012-07-23 21:45:24 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-07-24 01:43:20 -0700 |
commit | 352ee2f2fd6458a46e046ecaedb78addd5d6ac20 (patch) | |
tree | 793d2d736d7bb19fc6a72127344904ae332f073c /sleekxmpp/util/stringprep_profiles.py | |
parent | 78aa5c3dfa6432833877390f4bf48e3b5c442d2b (diff) | |
download | slixmpp-352ee2f2fd6458a46e046ecaedb78addd5d6ac20.tar.gz slixmpp-352ee2f2fd6458a46e046ecaedb78addd5d6ac20.tar.bz2 slixmpp-352ee2f2fd6458a46e046ecaedb78addd5d6ac20.tar.xz slixmpp-352ee2f2fd6458a46e046ecaedb78addd5d6ac20.zip |
Fix JID validation bugs, add lots of tests.
Diffstat (limited to 'sleekxmpp/util/stringprep_profiles.py')
-rw-r--r-- | sleekxmpp/util/stringprep_profiles.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/util/stringprep_profiles.py b/sleekxmpp/util/stringprep_profiles.py index a75bb9dd..6844c9ac 100644 --- a/sleekxmpp/util/stringprep_profiles.py +++ b/sleekxmpp/util/stringprep_profiles.py @@ -77,6 +77,9 @@ def check_bidi(data): character MUST be the first character of the string, and a RandALCat character MUST be the last character of the string. """ + if not data: + return data + has_lcat = False has_randal = False |