Ensure uniqueness by simplifying the path being checked for repitition

This commit is contained in:
Jamie Cameron
2026-10-09 20:58:39 -07:00
parent 63a07308ab
commit c51f0ed465

View File

@@ -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++) {