Deiteiincludes ($pfad) per whitelist prüfen #53

Merged
niklas.ortmann merged 10 commits from AllowistDateiincludes into dev 2026-07-18 18:31:56 +02:00
Showing only changes of commit d3435d4cde - Show all commits
+2 -2
View File
@@ -36,8 +36,8 @@ include_once "php/controller/index-controller.php";
<?php
include_once 'includes/navbar.php';
// Dynamischer Inhalt (Nutzt das geprüfte $pfad aus dem Index-Controller)
if ($pfad !== "404" && file_exists('content/' . $pfad . '.php')) {
// Dynamischer Inhalt
if (isset($pfad) && $pfad !== "404" && file_exists('content/' . $pfad . '.php')) {
include_once 'content/' . $pfad . '.php';
} else {
include_once 'content/404.php';