Software /
code /
prosody-modules
Diff
mod_http_upload/mod_http_upload.lua @ 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 |
parent | 2650:fef067b57305 |
child | 2665:cfb7936ff61f |
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));