Software /
code /
prosody-modules
Diff
mod_http_oauth2/mod_http_oauth2.lua @ 5665:7c105277a9ca
mod_http_oauth2: Remove broken in-CSS templating
Because util.interpolation with a "%b{}" pattern only matches the outer
brackets, so variables inside them would not work unless the pattern is
changed (also considered).
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 27 Aug 2023 09:49:35 +0200 |
parent | 5651:dd2079b3dec6 |
child | 5666:73c3d5bfce3e |
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua Sun Aug 27 15:33:14 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sun Aug 27 09:49:35 2023 +0200 @@ -1432,7 +1432,7 @@ headers = { ["Content-Type"] = "text/css"; }; - body = render_html(templates.css, module:get_option("oauth2_template_style")); + body = templates.css; } or nil; ["GET /script.js"] = templates.js and { headers = {