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 fee5a701df - Show all commits
+1 -1
View File
@@ -24,7 +24,7 @@ if (!in_array($pfad, $erlaubte_content_seiten)) {
// Automatisch den passenden Controller laden, falls erlaubt
if ($pfad !== "404" && in_array($pfad, $erlaubte_controller)) {
include_once "php/controller/" . $pfad . "-controller.php";
include_once "../php/controller/" . $pfad . "-controller.php";
// Nach Logout oder Account-Löschung das Skript sofort beenden
if ($pfad === "logout" || $pfad === "deleteAccount") {