From abee696da825259e1fe2ff8a6cc2acf71644cc6f Mon Sep 17 00:00:00 2001 From: Esenjin Date: Thu, 9 Jan 2025 17:31:27 +0100 Subject: [PATCH] =?UTF-8?q?les=20albums=20s'affichent=20=C3=A0=20nouveau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- albums.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/albums.php b/albums.php index 2f8e287..1ee0979 100644 --- a/albums.php +++ b/albums.php @@ -22,6 +22,10 @@ foreach (new DirectoryIterator($currentPath) as $item) { if ($item->isDot()) continue; if ($item->isDir()) { $albumPath = $item->getPathname(); + + // Ajout de la vérification de sécurité + if (!isSecurePath($albumPath)) continue; + $info = getAlbumInfo($albumPath); $images = hasSubfolders($albumPath) ? @@ -77,7 +81,7 @@ $config = getSiteConfig();

- +