From c98a22e065e81b5e01762e4eeedecb796a3954e1 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 15 Dec 2011 21:58:33 +0000 Subject: [PATCH] Fixed Issue 93: ACL.check jid parameter should be a string value --- sleekxmpp/plugins/xep_0009/remote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sleekxmpp/plugins/xep_0009/remote.py b/sleekxmpp/plugins/xep_0009/remote.py index 1e3b504..8c08e8f 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: