This commit is contained in:
Your Name 2018-08-24 13:35:54 +00:00
parent 5b620714d3
commit 9f2eea189b
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ func dirList(w http.ResponseWriter, r *http.Request, f File) {
// part of the URL path, and not indicate the start of a query
// string or fragment.
url := url.URL{Path: name}
fmt.Fprintf(w, "<tr><td><a href=\"%s\"%s</a></td><td>%d</td><td>%s</td></tr>", url.String(), htmlReplacer.Replace(name), d.Size(), d.ModTime().String())
fmt.Fprintf(w, "<tr><td><a href=\"%s\">%s</a></td><td>%d</td><td>%s</td></tr>", url.String(), htmlReplacer.Replace(name), d.Size(), d.ModTime().String())
// fmt.Fprintf(w, "<a href=\"%s\">%s</a>\n", url.String(), htmlReplacer.Replace(name))
}