diff options
author | Lance Stout <lancestout@gmail.com> | 2011-12-27 18:05:42 -0500 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-12-27 18:05:42 -0500 |
commit | 2f2ebb37e4d1bc8b25503063d327a7d02706b3ac (patch) | |
tree | 1b31cf621a7927c9aab3ac899e19583411818abd /sleekxmpp/plugins/xep_0009/remote.py | |
parent | f6e30edbc4a717b34bbf01d3d0a9fe884c6b37da (diff) | |
parent | 522f0dac167717603f2b52c0e0c10389d9e41768 (diff) | |
download | slixmpp-2f2ebb37e4d1bc8b25503063d327a7d02706b3ac.tar.gz slixmpp-2f2ebb37e4d1bc8b25503063d327a7d02706b3ac.tar.bz2 slixmpp-2f2ebb37e4d1bc8b25503063d327a7d02706b3ac.tar.xz slixmpp-2f2ebb37e4d1bc8b25503063d327a7d02706b3ac.zip |
Merge branch 'develop' into develop-1.1
Diffstat (limited to 'sleekxmpp/plugins/xep_0009/remote.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0009/remote.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0009/remote.py b/sleekxmpp/plugins/xep_0009/remote.py index 1e3b504a..8c08e8f3 100644 --- a/sleekxmpp/plugins/xep_0009/remote.py +++ b/sleekxmpp/plugins/xep_0009/remote.py @@ -113,6 +113,9 @@ class ACL: def check(cls, rules, jid, resource): if rules is None: return cls.DENY # No rules means no access! + jid = str(jid) # Check the string representation of the JID. + if not jid: + return cls.DENY # Can't check an empty JID. for rule in rules: policy = cls._check(rule, jid, resource) if policy is not None: |