Comparison

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
comparison
equal deleted inserted replaced
4695:4b3f054666e6 4696:6a05c9eb964e
3 local json = require "util.json"; 3 local json = require "util.json";
4 local st = require "util.stanza"; 4 local st = require "util.stanza";
5 local jid_node = require "util.jid".node; 5 local jid_node = require "util.jid".node;
6 local jid_bare = require "util.jid".bare; 6 local jid_bare = require "util.jid".bare;
7 local jid_resource = require "util.jid".resource; 7 local jid_resource = require "util.jid".resource;
8 local urlencode = require "util.http".urlencode;
8 9
9 local authorization_url = module:get_option("muc_http_auth_url", "") 10 local authorization_url = module:get_option("muc_http_auth_url", "")
10 local enabled_for = module:get_option_set("muc_http_auth_enabled_for", nil) 11 local enabled_for = module:get_option_set("muc_http_auth_enabled_for", nil)
11 local disabled_for = module:get_option_set("muc_http_auth_disabled_for", nil) 12 local disabled_for = module:get_option_set("muc_http_auth_disabled_for", nil)
12 local insecure = module:get_option("muc_http_auth_insecure", false) --For development purposes 13 local insecure = module:get_option("muc_http_auth_insecure", false) --For development purposes