summaryrefslogtreecommitdiff
path: root/sleekxmpp/util
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-23 21:45:24 -0700
committerLance Stout <lancestout@gmail.com>2012-07-24 01:43:20 -0700
commit352ee2f2fd6458a46e046ecaedb78addd5d6ac20 (patch)
tree793d2d736d7bb19fc6a72127344904ae332f073c /sleekxmpp/util
parent78aa5c3dfa6432833877390f4bf48e3b5c442d2b (diff)
downloadslixmpp-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')
-rw-r--r--sleekxmpp/util/stringprep_profiles.py3
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