diff options
author | Correl Roush <croush@coredial.com> | 2011-12-15 21:58:33 +0000 |
---|---|---|
committer | Correl Roush <croush@coredial.com> | 2011-12-15 21:58:33 +0000 |
commit | c98a22e065e81b5e01762e4eeedecb796a3954e1 (patch) | |
tree | b38a41df25d1e22b960f82c6296a038f0dd26822 | |
parent | d496417deb5a2c87fe8ad639e82d2b19ce94fc30 (diff) | |
download | slixmpp-c98a22e065e81b5e01762e4eeedecb796a3954e1.tar.gz slixmpp-c98a22e065e81b5e01762e4eeedecb796a3954e1.tar.bz2 slixmpp-c98a22e065e81b5e01762e4eeedecb796a3954e1.tar.xz slixmpp-c98a22e065e81b5e01762e4eeedecb796a3954e1.zip |
Fixed Issue 93: ACL.check jid parameter should be a string value
-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: |