Mercurial > prosody-modules
diff mod_http_oauth2/mod_http_oauth2.lua @ 5473:e4382f6e3564
mod_http_oauth2: Tweak formatting of log message
No need to `or ""` anymore since Prosody rev e88db5668cfb (0.11.0) and
the %q format should produce either (nil) or "http://example"
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 May 2023 13:27:27 +0200 |
parents | b80b6947b079 |
children | d0b93105b289 |
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua Thu May 18 13:43:17 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Thu May 18 13:27:27 2023 +0200 @@ -610,7 +610,7 @@ 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_secure_redirect(redirect_uri) then - module:log("warn", "Missing or invalid redirect_uri <%s>, rendering error to user-agent", redirect_uri or ""); + module:log("warn", "Missing or invalid redirect_uri %q, rendering error to user-agent", redirect_uri); return render_error(err); end local redirect_query = url.parse(redirect_uri);