From 5a83c2770d19062eb5a8b7a061fd558e48b043c1 Mon Sep 17 00:00:00 2001 From: Ruben Date: Tue, 17 Mar 2026 10:54:52 +0100 Subject: [PATCH] Fix feed item rendering and strengthen static file path traversal protection --- app/router.php | 2 ++ app/static.php | 32 +++++++++++++++++++++----------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/app/router.php b/app/router.php index 5e2d72e..e3b4b77 100644 --- a/app/router.php +++ b/app/router.php @@ -78,6 +78,8 @@ if (str_ends_with($ctx->requestPath, 'feed.xml')) { // Render full content for each item foreach ($items as &$item) { $item['content'] = ''; + $itemMetadata = loadMetadata($item['dirPath']); + getPluginManager()->loadPagePlugins($itemMetadata); $contentFiles = findAllContentFiles($item['dirPath']); foreach ($contentFiles as $file) { $item['content'] .= renderContentFile($file, $ctx); diff --git a/app/static.php b/app/static.php index 642fa2a..4b0d4c1 100644 --- a/app/static.php +++ b/app/static.php @@ -1,29 +1,39 @@