Software /
code /
prosody-modules
Diff
mod_muc_http_auth/mod_muc_http_auth.lua @ 4696:6a05c9eb964e
mod_muc_http_auth: Make sure query parameters are URL encoded
author | Seve Ferrer <seve@delape.net> |
---|---|
date | Thu, 23 Sep 2021 16:41:42 +0200 |
parent | 4695:4b3f054666e6 |
child | 4697:15c335dc196e |
line wrap: on
line diff
--- a/mod_muc_http_auth/mod_muc_http_auth.lua Tue Sep 21 14:00:01 2021 +0200 +++ b/mod_muc_http_auth/mod_muc_http_auth.lua Thu Sep 23 16:41:42 2021 +0200 @@ -5,6 +5,7 @@ local jid_node = require "util.jid".node; local jid_bare = require "util.jid".bare; local jid_resource = require "util.jid".resource; +local urlencode = require "util.http".urlencode; local authorization_url = module:get_option("muc_http_auth_url", "") local enabled_for = module:get_option_set("muc_http_auth_enabled_for", nil)