mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-23 21:19:18 -06:00
Do not mess with non-lowercased fields
This commit is contained in:
@@ -374,11 +374,12 @@ func formatQuery(q string) string {
|
||||
for _, part := range parts {
|
||||
fieldParts := strings.SplitN(part, ":", 2)
|
||||
if len(fieldParts) > 1 {
|
||||
key := fieldParts[0]
|
||||
value := fieldParts[1]
|
||||
if value != "T" && value != "F" {
|
||||
value = strings.ToLower(value) // do a lowercase query unless this is a boolean flag
|
||||
if key == "Name" || key == "Tags" {
|
||||
value = strings.ToLower(value) // do a lowercase query on the lowercased fields
|
||||
}
|
||||
cq += fieldParts[0] + ":" + value + " "
|
||||
cq += key + ":" + value + " "
|
||||
} else {
|
||||
cq += part + " "
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user