Update file editpage.php

This commit is contained in:
Jan BELLON 2024-03-12 09:28:36 +00:00
parent 7f3f32af95
commit b27a487589

View File

@ -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;