Software /
code /
prosody
Diff
plugins/mod_storage_xep0227.lua @ 12355:a0ff5c438e9d
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 04 Mar 2022 15:22:45 +0000 |
parent | 12195:c5788969b812 |
child | 12454:b2438f374b3e |
line wrap: on
line diff
--- a/plugins/mod_storage_xep0227.lua Fri Mar 04 15:03:02 2022 +0000 +++ b/plugins/mod_storage_xep0227.lua Fri Mar 04 15:22:45 2022 +0000 @@ -68,11 +68,11 @@ 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 = {};