From 7b874b1cde722ff8027d91665e0eb04450abc236 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Mon, 14 Oct 2024 17:29:45 +0200 Subject: [PATCH] fix: verify correct path before creating logos folder --- endpoints/payments/add.php | 2 +- endpoints/subscription/add.php | 2 +- endpoints/user/save_user.php | 2 +- includes/version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/endpoints/payments/add.php b/endpoints/payments/add.php index 37d8144c2..2e301e688 100644 --- a/endpoints/payments/add.php +++ b/endpoints/payments/add.php @@ -4,7 +4,7 @@ require_once '../../includes/inputvalidation.php'; require_once '../../includes/getsettings.php'; -if (!file_exists('images/uploads/logos')) { +if (!file_exists('../../images/uploads/logos')) { mkdir('../../images/uploads/logos', 0777, true); mkdir('../../images/uploads/logos/avatars', 0777, true); } diff --git a/endpoints/subscription/add.php b/endpoints/subscription/add.php index 42934d056..753dc489b 100644 --- a/endpoints/subscription/add.php +++ b/endpoints/subscription/add.php @@ -4,7 +4,7 @@ require_once '../../includes/inputvalidation.php'; require_once '../../includes/getsettings.php'; -if (!file_exists('images/uploads/logos')) { +if (!file_exists('../../images/uploads/logos')) { mkdir('../../images/uploads/logos', 0777, true); mkdir('../../images/uploads/logos/avatars', 0777, true); } diff --git a/endpoints/user/save_user.php b/endpoints/user/save_user.php index aa2bf4144..9ed644335 100644 --- a/endpoints/user/save_user.php +++ b/endpoints/user/save_user.php @@ -2,7 +2,7 @@ require_once '../../includes/connect_endpoint.php'; require_once '../../includes/inputvalidation.php'; -if (!file_exists('images/uploads/logos')) { +if (!file_exists('../../images/uploads/logos')) { mkdir('../../images/uploads/logos', 0777, true); mkdir('../../images/uploads/logos/avatars', 0777, true); } diff --git a/includes/version.php b/includes/version.php index a2c44d980..6a16e17f9 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ \ No newline at end of file