and check the right parameter while yo'ure at it
This commit is contained in:
parent
c28ea0e348
commit
c4fe2bf08b
|
@ -70,7 +70,7 @@ func dirList(w http.ResponseWriter, r *http.Request, f http.File) {
|
||||||
key = k[0]
|
key = k[0]
|
||||||
}
|
}
|
||||||
order := ""
|
order := ""
|
||||||
o, ok := r.URL.Query()["key"]
|
o, ok := r.URL.Query()["order"]
|
||||||
if !ok || (o[0] != "asc" && o[0] != "desc") {
|
if !ok || (o[0] != "asc" && o[0] != "desc") {
|
||||||
order = "asc"
|
order = "asc"
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue