properly handle escaping of paths

This commit is contained in:
2026-03-31 11:16:28 +02:00
parent 0493632932
commit 807e124570
3 changed files with 10 additions and 17 deletions
+3 -3
View File
@@ -10,14 +10,14 @@
<% for i, dir in ipairs(dirs) do %>
<br>
<a href="<%= uri .. dir["sane"] %>" class="djsection"><span><%= dir["dir"] %></span></a>
<a href="<%- functions.escape(uri .. dir) %>" class="djsection"><span><%= dir %></span></a>
<br>
<% end %>
<br>
<% for i, file in ipairs(files) do %>
<a class="amixlink" href="<%= path .. file["sane"] %>">
<span class="mixlink"><%= file["file"] %></span>
<a class="amixlink" href="<%- functions.escape(path .. file) %>">
<span class="mixlink"><%= file %></span>
</a>
<br>
<% end %>