Changeset

5217:6a27effb3ef0

mod_http_oauth2: Fix incorrect function name (thanks Zash/luacheck)
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Mar 2023 10:27:40 +0000
parents 5216:1d9dbe84b6e8
children 5218:1f4b768c831a
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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