From e626855282e5b813e31c080f4e386975f3841901 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 8 Apr 2022 15:09:19 +0200 Subject: mod_storage_xep0227: Fix conversion of SCRAM into internal format (fix #1741) Looks like this function was a copy of hex_to_base64 without modifying it to do its inverse. --- plugins/mod_storage_xep0227.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_storage_xep0227.lua') diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua index 5b4d3f1a..285428d6 100644 --- a/plugins/mod_storage_xep0227.lua +++ b/plugins/mod_storage_xep0227.lua @@ -72,7 +72,7 @@ local function hex_to_base64(s) end local function base64_to_hex(s) - return base64.encode(hex.decode(s)); + return hex.encode(base64.decode(s)); end local handlers = {}; -- cgit v1.2.3