From e794bcce6d072e0c6f764991cea5d5adcd3df8d3 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 15 Mar 2024 01:55:19 +0000 Subject: [PATCH] Update 2 files - /html/editor/index.php - /html/account/index.php --- html/account/index.php | 4 ++-- html/editor/index.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/account/index.php b/html/account/index.php index 5b4974ce..c5349006 100644 --- a/html/account/index.php +++ b/html/account/index.php @@ -7,7 +7,7 @@ if (isset($_FILES['newPP']) && $_FILES['newPP']['error'] == 0) { $tempImagePath = $_FILES['newPP']['tmp_name']; $ImagePath = 'assets/pp/' . $_SESSION['userID'] . '.png'; $rootImagePath = $rootFilePath . 'html/' . $ImagePath; - $imageURL = $rootPageURL . $ImagePath; + $imageURL = "/" . $ImagePath; list($width, $height) = getimagesize($tempImagePath); @@ -46,7 +46,7 @@ if (isset($_FILES['newBanner']) && $_FILES['newBanner']['error'] == 0) { $tempImagePath = $_FILES['newBanner']['tmp_name']; $ImagePath = 'assets/banners/' . $_SESSION['userID'] . '.png'; $rootImagePath = $rootFilePath . 'html/' . $ImagePath; - $imageURL = $rootPageURL . $ImagePath; + $imageURL = "/" . $ImagePath; list($width, $height) = getimagesize($tempImagePath); diff --git a/html/editor/index.php b/html/editor/index.php index 11fc23c7..2205ef64 100644 --- a/html/editor/index.php +++ b/html/editor/index.php @@ -77,7 +77,7 @@ if (isset($_FILES['miniature']) && $_FILES['miniature']['error'] == 0 && isset($ $tempImagePath = $_FILES['miniature']['tmp_name']; $ImagePath = 'assets/miniatures/' . $articleID . '.png'; $rootImagePath = $rootFilePath . 'html/' . $ImagePath; - $imageURL = $rootPageURL . $ImagePath; + $imageURL = "/" . $ImagePath; list($width, $height) = getimagesize($tempImagePath);