escape url paths

This commit is contained in:
2026-03-30 12:17:07 +02:00
parent ef04458cd8
commit dc196fb621
4 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
<br>
<h1 class="h1">Latest uploads:</h1>
<% for i, file in ipairs(latestpath) do %>
<a class="amixlink" href="<%= '/data/' .. titles.url .. '/' .. file:gsub("#", "%%23") %>">
<a class="amixlink" href="<%= '/data/' .. titles.url .. '/' .. file %>">
<span class="mixlink"><%= latestname[i] %></span>
</a>
</br>