Korrektur

This commit is contained in:
2026-07-18 17:54:30 +02:00
parent 4f95a3d423
commit 8c961a56ce
4 changed files with 42 additions and 11 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ require_once __DIR__ . "/../model/CommentManager.php";
* Kommentare dürfen nur über ein POST-Formular gelöscht werden.
*/
if ($_SERVER["REQUEST_METHOD"] !== "POST") {
header("Location: ../../index.php");
header("Location: index.php");
exit();
}
$commentId = filter_input(
@@ -97,7 +97,7 @@ try {
* Anschließend wird wieder zum Beitrag und zu den Kommentaren geleitet.
*/
header(
"Location: ../../index.php?pfad=showArticle&id="
"Location: index.php?pfad=showArticle&id="
. urlencode((string) $articleId)
. "#comments"
);