From 10e63a066634a3ea62643b699ce742dbc7b50eb1 Mon Sep 17 00:00:00 2001 From: myname Date: Tue, 27 Sep 2022 02:12:24 -0500 Subject: [PATCH] Fixing bulk add bug, tag is set to "\" if no other tags are present --- core/imageboard/misc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/imageboard/misc.php b/core/imageboard/misc.php index a1f66eca..0b871a78 100644 --- a/core/imageboard/misc.php +++ b/core/imageboard/misc.php @@ -20,6 +20,8 @@ function add_dir(string $base): array $filename = basename($full_path); $tags = path_to_tags($short_path); + if ($tags[0] == "\\") + $tags = ""; $result = "$short_path (".str_replace(" ", ", ", $tags).")... "; try { add_image($full_path, $filename, $tags);