aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r--plugins/mod_storage_xep0227.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua
index 1a7baaeb..9a3ca002 100644
--- a/plugins/mod_storage_xep0227.lua
+++ b/plugins/mod_storage_xep0227.lua
@@ -68,11 +68,11 @@ local function createOuterXml(user, host)
end
local function hex_to_base64(s)
- return base64.encode(hex.from(s));
+ return base64.encode(hex.decode(s));
end
local function base64_to_hex(s)
- return base64.encode(hex.from(s));
+ return base64.encode(hex.decode(s));
end
local handlers = {};