Mercurial > prosody-modules
diff mod_http_oauth2/mod_http_oauth2.lua @ 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 | d5492bc861f6 |
children | 1f4b768c831a |
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