From c51f0ed4657d8bad2a577f6c1e12dd3da4ca421a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 9 Oct 2026 20:58:39 -0700 Subject: [PATCH] Ensure uniqueness by simplifying the path being checked for repitition --- web-lib-funcs.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 8105f0619..9bc99a655 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -10591,7 +10591,8 @@ my ($path, $seen) = @_; $seen ||= { }; $path =~ s/\/+/\//g; $path =~ s/\/$// if ($path ne "/"); -return $path if ($seen->{$path}++); +my $simple = &simplify_path($path) || $path; +return $path if ($seen->{$simple}++); my @p = split(/\/+/, $path); shift(@p); for(my $i=0; $i<@p; $i++) {