summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-02-03 16:29:38 +0100
committerLance Stout <lancestout@gmail.com>2012-02-03 16:29:38 +0100
commitcaa967105c609537050817021a426b0a7e6d54ec (patch)
treebe3c308036d9b40c61c3486a2f941fb3e9e61582 /sleekxmpp/plugins
parentd565e4be2084eee14b93c753765b82b5d0f00cd1 (diff)
downloadslixmpp-caa967105c609537050817021a426b0a7e6d54ec.tar.gz
slixmpp-caa967105c609537050817021a426b0a7e6d54ec.tar.bz2
slixmpp-caa967105c609537050817021a426b0a7e6d54ec.tar.xz
slixmpp-caa967105c609537050817021a426b0a7e6d54ec.zip
Add more XEP-0047 tests.
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r--sleekxmpp/plugins/xep_0047/stanza.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0047/stanza.py b/sleekxmpp/plugins/xep_0047/stanza.py
index f5b77c0e..fb0d4309 100644
--- a/sleekxmpp/plugins/xep_0047/stanza.py
+++ b/sleekxmpp/plugins/xep_0047/stanza.py
@@ -46,7 +46,7 @@ class Data(ElementBase):
self._set_attr('seq', str(value))
def get_data(self):
- b64_data = self.xml.text
+ b64_data = self.xml.text.strip()
if VALID_B64.match(b64_data).group() == b64_data:
return from_b64(b64_data)
else: