dev auf main #68

Open
niklas.ortmann wants to merge 1044 commits from devNachCSRF into main
Showing only changes of commit c9c0de6c3c - Show all commits
+5 -5
View File
@@ -8,11 +8,6 @@ require_once "../model/LocalUserDAO.php";
try{
$dao = new LocalUserDAO();
$user = $dao->findUser($_SESSION["user_email"] ?? "");
} catch (Exception $e) {
$_SESSION["message"] = "internal_error";
header("location: ../../index.php?pfad=createArticle");
exit();
}
if ($_SERVER["REQUEST_METHOD"] === "POST") {
$_SESSION["old_title"] = $_POST["title"] ?? '';
$_SESSION["old_content"] = $_POST["content"] ?? '';
@@ -91,6 +86,11 @@ try{
exit();
}
}
} catch (Exception $e) {
$_SESSION["message"] = "internal_error";
header("location: ../../index.php?pfad=createArticle");
exit();
}
?>