From 3356e9fa3f66fcb593eb4320d1fd5c8648a214b4 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 19:49:47 +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 ecd99e1f..dc5903f7 100644 --- a/html/upload.php +++ b/html/upload.php @@ -18,7 +18,7 @@ if(isset($_POST['article-content'])) { file_put_contents($wwwroot . "/content/journal/" . $filename . ".md", nl2br($_POST['page-content'])); $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $upload = $bdd->prepare("INSERT INTO articles (ID, titre, auteur, image, classification) VALUES (:filename, :titre, :auteur, :image, :resume, :classification)"); + $upload = $bdd->prepare("INSERT INTO articles (ID, titre, auteur, image, resume, classification) VALUES (:filename, :titre, :auteur, :image, :resume, :classification)"); $upload->bindParam(':filename', $filename); $upload->bindParam(':titre', htmlspecialchars($_POST['article-titre'])); $upload->bindParam(':auteur', $_SESSION['display_name']);