and check the right parameter while yo'ure at it
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user