# HG changeset patch # User Matthew Wild # Date 1587652752 -3600 # Node ID 32d7f05e062fe80f85d0b70dfebdd7174742388b # Parent 569f754bd1261624ab7cc454af97fd99c7b66058 mod_auth_custom_http: Unlock globals while loading socket.http ltn12 tries to set a global and isn't caught by the require sandboxing. Lua 5.2 issue? diff -r 569f754bd126 -r 32d7f05e062f mod_auth_custom_http/mod_auth_custom_http.lua --- a/mod_auth_custom_http/mod_auth_custom_http.lua Wed Apr 22 12:42:42 2020 +0200 +++ b/mod_auth_custom_http/mod_auth_custom_http.lua Thu Apr 23 15:39:12 2020 +0100 @@ -7,7 +7,9 @@ local new_sasl = require "util.sasl".new; local json = require "util.json"; +prosody.unlock_globals(); local http = require "socket.http"; +prosody.lock_globals(); local options = module:get_option("auth_custom_http"); local post_url = options and options.post_url;