From f25de548b2b87c7479824c569ffc58e65d767463 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 28 Mar 2024 21:19:47 +0200 Subject: [PATCH] fix remote snaps list builder --- src/webui/explore.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/webui/explore.php b/src/webui/explore.php index 0ac11d8..5c8d61c 100644 --- a/src/webui/explore.php +++ b/src/webui/explore.php @@ -164,6 +164,11 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp) foreach ((array) $remote->nlist($filepath) as $filename) { + if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.')) + { + continue; + } + $basename = basename( $filename );