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]
|
||||
}
|
||||
order := ""
|
||||
o, ok := r.URL.Query()["key"]
|
||||
o, ok := r.URL.Query()["order"]
|
||||
if !ok || (o[0] != "asc" && o[0] != "desc") {
|
||||
order = "asc"
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue