1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 02:05:59 +01:00

Mark paths in recordings server as relative.

Since paths may contain colons, they could otherwise be mistaken for
URLs with a scheme.
This commit is contained in:
Juliusz Chroboczek 2020-09-21 23:03:03 +02:00
parent 0aa77441bd
commit cca19444d6

View file

@ -565,7 +565,7 @@ func serveGroupRecordings(w http.ResponseWriter, r *http.Request, f *os.File, gr
if fi.IsDir() {
continue
}
fmt.Fprintf(w, "<tr><td><a href=\"%v\">%v</a></td><td>%d</td>",
fmt.Fprintf(w, "<tr><td><a href=\"./%v\">%v</a></td><td>%d</td>",
html.EscapeString(fi.Name()),
html.EscapeString(fi.Name()),
fi.Size(),