comparison mod_http_oauth2/mod_http_oauth2.lua @ 5642: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
parents dd2079b3dec6
children 73c3d5bfce3e
comparison
equal deleted inserted replaced
5641:9ce8ee530438 5642:7c105277a9ca
1430 -- Optional static content for templates 1430 -- Optional static content for templates
1431 ["GET /style.css"] = templates.css and { 1431 ["GET /style.css"] = templates.css and {
1432 headers = { 1432 headers = {
1433 ["Content-Type"] = "text/css"; 1433 ["Content-Type"] = "text/css";
1434 }; 1434 };
1435 body = render_html(templates.css, module:get_option("oauth2_template_style")); 1435 body = templates.css;
1436 } or nil; 1436 } or nil;
1437 ["GET /script.js"] = templates.js and { 1437 ["GET /script.js"] = templates.js and {
1438 headers = { 1438 headers = {
1439 ["Content-Type"] = "text/javascript"; 1439 ["Content-Type"] = "text/javascript";
1440 }; 1440 };