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"
--- 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);