Fix feed item rendering and strengthen static file path traversal

protection
This commit is contained in:
Ruben 2026-03-17 10:54:52 +01:00
parent 74672b2d04
commit 5a83c2770d
2 changed files with 23 additions and 11 deletions

View file

@ -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);