aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index 32744fb2..707221ac 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -324,7 +324,7 @@ namespace slskd.Transfers.Downloads
throw new ArgumentException("One or more files contains a dangerous path traversal segment", nameof(files));
}
- if (fileList.Count != fileList.Distinct().Count())
+ if (fileList.Count != fileList.Select(f => f.Filename).Distinct().Count())
{
throw new ArgumentException("Two or more files in request are duplicated", nameof(files));
}