From c24537407b360d9fdf5ae64c1878033357544507 Mon Sep 17 00:00:00 2001 From: souliane Date: Fri, 4 Mar 2016 10:00:23 +0100 Subject: [PATCH] plugin XEP-0363: fixes a forgotten attribute update --- src/plugins/plugin_xep_0363.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin_xep_0363.py b/src/plugins/plugin_xep_0363.py index a1ffe935..21508f42 100644 --- a/src/plugins/plugin_xep_0363.py +++ b/src/plugins/plugin_xep_0363.py @@ -234,7 +234,7 @@ class XEP_0363(object): @param content_type(unicode, None): MIME type of the content empty string or None to guess automatically """ - filename.replace('/', '_') + filename = filename.replace('/', '_') client = self.host.getClient(profile_key) return self.getSlot(client, filename, size, content_type or None, upload_jid or None)