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]
|
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 {
|
||||||
|
Reference in New Issue
Block a user