Update createArticle-controller.php

This commit is contained in:
2026-06-14 22:18:08 +02:00
parent a88f8ca638
commit 7d9aae2a59
@@ -24,12 +24,6 @@ require_once '../validator/article-validator.php';
$tags = $_POST['tags'] ?? '';
// -------------------------------- Validierung der Daten: -------------------------
if (!articleAuthorValidator($author)) {
$_SESSION["message"] = "author_not_valid";
header("location: ../../index.php?pfad=createArticle");
exit();
}
if (!articleTitleValidator($title)) {
$_SESSION["message"] = "invalid_title";
header("location: ../../index.php?pfad=createArticle");