changeset 1875:c55220fc03e4

plugin XEP-0363: fixes a forgotten attribute update
author souliane <souliane@mailoo.org>
date Fri, 04 Mar 2016 10:00:23 +0100
parents 658824755a0c
children 1088bf7b28e7
files src/plugins/plugin_xep_0363.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0363.py	Thu Mar 03 18:28:53 2016 +0100
+++ b/src/plugins/plugin_xep_0363.py	Fri Mar 04 10:00:23 2016 +0100
@@ -234,7 +234,7 @@
         @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)