Software /
code /
prosody-modules
Changeset
2651:2b741e68433b
mod_http_upload: Use correct function for base64
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 28 Mar 2017 17:09:39 +0200 |
parents | 2650:fef067b57305 |
children | 2652:20ebfa4ad7f4 |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Sun Mar 26 23:08:14 2017 +0200 +++ b/mod_http_upload/mod_http_upload.lua Tue Mar 28 17:09:39 2017 +0200 @@ -19,7 +19,7 @@ local have_random, random = pcall(require, "util.random"); -- Only available in 0.10+ local uuid = require"util.uuid".generate; if have_random then - local b64 = require "util.encodings".base64; + local b64 = require "util.encodings".base64.encode; local b64url = { ['+'] = '-', ['/'] = '_', ['='] = '' }; function uuid() return (b64(random.bytes(8)):gsub("[+/=]", b64url));