Fix order col whitelist processing

This commit is contained in:
Denis Arh
2019-10-29 10:06:14 +01:00
parent ce1acec909
commit eda1cf4a71
+1 -1
View File
@@ -21,7 +21,7 @@ func ParseOrder(order string, valid ...string) (out []string, err error) {
for _, col := range valid {
if i := strings.Index(col, "."); i > -1 {
whitelist[col[i:]] = true
whitelist[col[i+1:]] = true
}
whitelist[col] = true