@marcel91200 / caddy Mirror · read-only / commits / 790f3e08
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 23:30 UTC

fileserver: denote license for embedded JavaScript for LibreJS (#7127)

This commit adds support for LibreJS (https://en.wikipedia.org/wiki/GNU_LibreJS). LibreJS would block this embedded JavaScript because its license is not stated in a machine-readable format. Signed-off-by: Cédric Félizard <cedric@felizard.fr>

Cédric Félizard committed Jul 16, 2025 at 17:49 UTC 790f3e0885cae4f6362f35f8ed4f725824d46089
1 file changed +2
modules/caddyhttp/fileserver/browse.html
+2
@@ -1176,6 +1176,7 @@ footer {
1176 </footer>
1177
1178 <script {{ $nonceAttribute }}>
1179 + // @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0
1180 const filterEl = document.getElementById('filter');
1181 filterEl?.focus({ preventScroll: true });
1182
@@ -1265,6 +1266,7 @@ footer {
1266 }
1267 var timeList = Array.prototype.slice.call(document.getElementsByTagName("time"));
1268 timeList.forEach(localizeDatetime);
1269 + // @license-end
1270 </script>
1271 </body>
1272 </html>