diff --git a/html/src/css/style.css b/html/src/css/style.css
index 6963aa8e..9baaf7b9 100644
--- a/html/src/css/style.css
+++ b/html/src/css/style.css
@@ -158,6 +158,10 @@ a {
width: 40%;
}
+.article-content img {
+ max-height: 10em;
+}
+
.row {
display: inline-block;
background-color: var(--banner-background);
diff --git a/html/upload.php b/html/upload.php
index 6ac9ace2..ecd99e1f 100644
--- a/html/upload.php
+++ b/html/upload.php
@@ -18,12 +18,12 @@ 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, classification) VALUES (:filename, :titre, :auteur, :image, :resume, :classification)");
+ $upload = $bdd->prepare("INSERT INTO articles (ID, titre, auteur, image, 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']);
$upload->bindParam(':image', htmlspecialchars($_POST['article-image']));
$upload->bindParam(':resume', htmlspecialchars($_POST['article-resume']));
- $upload->bindParam(':auteur', $_SESSION['display_name']);
$upload->bindParam(':classification', $_POST['classification']);
if($upload->execute()) {
$status = "Article PubliƩ";