mod_http_oauth2: Fix incorrect function name (thanks Zash/luacheck)
authorMatthew Wild <mwild1@gmail.com>
Tue, 07 Mar 2023 10:27:40 +0000
changeset 5221 6a27effb3ef0
parent 5220 1d9dbe84b6e8
child 5222 1f4b768c831a
mod_http_oauth2: Fix incorrect function name (thanks Zash/luacheck)
mod_http_oauth2/mod_http_oauth2.lua
--- a/mod_http_oauth2/mod_http_oauth2.lua	Tue Mar 07 10:26:57 2023 +0000
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Tue Mar 07 10:27:40 2023 +0000
@@ -390,7 +390,7 @@
 local function error_response(request, err)
 	local q = request.url.query and http.formdecode(request.url.query);
 	local redirect_uri = q and q.redirect_uri;
-	if not redirect_uri or not is_safe_redirect(redirect_uri) then
+	if not redirect_uri or not is_secure_redirect(redirect_uri) then
 		module:log("warn", "Missing or invalid redirect_uri <%s>, rendering error to user-agent", redirect_uri or "");
 		return render_page(templates.error, { error = err });
 	end