From 36e9f1ab0d7f02cc711f1f8be6c7a842c52fb709 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Fri, 19 Apr 2019 17:15:32 -0500 Subject: [PATCH] Parenthesize user-entered search term. This seems to avoid some strange behavior for OR queries. --- disksearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disksearch.c b/disksearch.c index ed9e0d4..f8318e4 100644 --- a/disksearch.c +++ b/disksearch.c @@ -76,7 +76,7 @@ void DoSearch(boolean getMore) { asprintf(&searchURL, "http://archive.org/advancedsearch.php?" - "q=emulator%%3A%s%%20%s" + "q=emulator%%3A%s%%20(%s)" "&fl%%5B%%5D=identifier&fl%%5B%%5D=title" "&fl%%5B%%5D=emulator_ext" "&sort%%5B%%5D=titleSorter+asc"