From 72829bfdbe9e6be7604c126b3608708e656f1659 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 12:45:46 +0000 Subject: [PATCH] Update file upload.php --- html/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/upload.php b/html/upload.php index 8b08a0ba..c1c139fb 100644 --- a/html/upload.php +++ b/html/upload.php @@ -15,7 +15,7 @@ while(file_exists($wwwroot . "/content/journal/" . $filename . ".md")) { } if(isset($_POST['article-content'])) { - file_put_contents($wwwroot . "/content/journal/" . $filename . ".md", nl2br($_POST['page-content'])); + file_put_contents($wwwroot . "/content/journal/" . $filename . ".md", nl2br($_POST['article-content'])); $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); $upload = $bdd->prepare("INSERT INTO articles (ID, titre, auteur, resume, classification) VALUES (:filename, :titre, :auteur, :resume, :classification)");