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
+2 -1
View File
@@ -11,13 +11,14 @@ local function Roothandler(self)
local latest_path, latest_name = hotmixes.utils.these_latest( path )
self.total = hotmixes.utils.total_files_dir( path )
self.uri = hotmixes.utils.request_path
self.uri = hotmixes.utils.request_path:sub(2) -- remove leading slash
self.path = '/data/' .. self.titles.url .. hotmixes.utils.request_path
self.dirs = stuff.dirs
self.files = stuff.files
self.images = stuff.images
self.latestpath = latest_path
self.latestname = latest_name
self.functions = { escape = escape }
if self.titles['url'] == "panamaracing.club" then
return { render = "root", layout = require "views.prc_layout" }