Do not choke on : searches

Fixes #4744
This commit is contained in:
André Duffeck
2023-05-23 15:37:35 +02:00
parent 9fe1225b53
commit e8c9d16576

View File

@@ -383,5 +383,6 @@ func formatQuery(q string) string {
}
// this is a basic filename search
cq = strings.ReplaceAll(cq, ":", `\:`)
return "Name:*" + strings.ReplaceAll(strings.ToLower(cq), " ", `\ `) + "*"
}