From b581724b35e46e41c681464a3ca61378ad952b29 Mon Sep 17 00:00:00 2001
From: cy_altern <cy.altern@gmail.com>
Date: Sun, 8 Jan 2023 12:07:07 +0100
Subject: [PATCH] =?UTF-8?q?fix:=20au=20chargement=20de=20documents=20depui?=
 =?UTF-8?q?s=20tmp/upload=20(source=20"le=20serveur")=20ne=20charger=20que?=
 =?UTF-8?q?=20le=20sous-dossier=20demand=C3=A9=20(et=20non=20pas=20tous=20?=
 =?UTF-8?q?les=20sous-dossiers)=20Fix:=20#4915?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 formulaires/joindre_document.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/formulaires/joindre_document.php b/formulaires/joindre_document.php
index 9a06a1e9..94d30e3c 100644
--- a/formulaires/joindre_document.php
+++ b/formulaires/joindre_document.php
@@ -442,7 +442,7 @@ function joindre_options_upload_ftp($dir, $mode = 'document') {
 				$lefichier = substr($f, $n + 1, strlen($f));
 				$ledossier = substr($f, 0, $n);
 				if (!in_array($ledossier, $dirs)) {
-					$texte_upload[] = "\n<option value=\"$ledossier\">"
+					$texte_upload[] = "\n<option value=\"$ledossier/\">"
 						. str_repeat('&nbsp;', $k)
 						. _T('medias:tout_dossier_upload', ['upload' => $ledossier])
 						. '</option>';
-- 
GitLab