dev auf main #68

Open
niklas.ortmann wants to merge 1044 commits from devNachCSRF into main
2 changed files with 9 additions and 4 deletions
Showing only changes of commit e3903b4f3e - Show all commits
+6 -1
View File
@@ -34,15 +34,20 @@ if ($pfad === "logout") {
include_once "php/controller/logout-controller.php";
exit();
}
if ($pfad === "deleteAccount") {
include_once "php/controller/deleteAccount-controller.php";
exit();
}
if ($pfad === "updateComment") {
include_once "php/controller/updateComment-controller.php";
exit();
}
if ($pfad === "deleteComment") {
include_once "php/controller/deleteComment-controller.php";
exit();
}
?>
<!--
+3 -3
View File
@@ -34,12 +34,12 @@ if (!isset($_SESSION["user_email"])) {
if ($articleId !== false && $articleId !== null) {
header(
"Location: ../../index.php?pfad=showArticle&id="
"Location: index.php?pfad=showArticle&id="
. urlencode((string) $articleId)
. "#comments"
);
} else {
header("Location: ../../index.php");
header("Location: index.php");
}
exit();
}
@@ -58,7 +58,7 @@ if (
$_SESSION["comment_message_type"] = "error";
header("Location: ../../index.php");
header("Location: index.php");
exit();
}