From b27a487589fb4bb9add86c963ffc8e7b2d4006ce Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 09:28:36 +0000 Subject: [PATCH] Update file editpage.php --- html/editpage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/editpage.php b/html/editpage.php index 47660e24..a7c2e6e0 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -32,7 +32,7 @@ if(isset($_GET['page']) && strpos($_GET['page'], "..") == false) { if (isset($_FILES['miniature']) && $_FILES['miniature']['error'] == 0 && isset($_GET['article'])) { // Chemins et noms de fichiers $tempPath = $_FILES['miniature']['tmp_name']; - $path = '/src/miniature/'. $_SESSION['userid'] .'.png'; + $path = '/src/miniature/'. $_GET['article'] .'.png'; $rootPath = $wwwroot . "/html" . $path; $webPath = $root . $path;