aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 29b6f656..63b29d84 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -881,6 +881,13 @@ namespace slskd
return null;
}
+ // sometimes clients send search queries consisting only of exclusions; drop them.
+ // no other clients send search results for these, even though it is technically possible.
+ if (!query.Terms.Any())
+ {
+ return null;
+ }
+
try
{
var results = await Shares.SearchAsync(query);