# HG changeset patch # User Kim Alvefur # Date 1684409247 -7200 # Node ID e4382f6e356427e119475ec4e0ec7d4ad261df40 # Parent b80b6947b07946f70de786000c5b32aa4d774d2d 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" diff -r b80b6947b079 -r e4382f6e3564 mod_http_oauth2/mod_http_oauth2.lua --- 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);