FIX html encoding
This commit is contained in:
parent
3bb3c9856e
commit
94b90af504
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ func (mu *MegaUploader) home(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
user, _ := getUser(r)
|
user, _ := getUser(r)
|
||||||
shares := mu.Conf.GetAuthShares(user)
|
shares := mu.Conf.GetAuthShares(user)
|
||||||
w.Header().Set("Content-Type", "text/html")
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
tmpl.Execute(w, map[string]interface{}{
|
tmpl.Execute(w, map[string]interface{}{
|
||||||
"Prefix": mu.Conf.Global.RoutePrefix,
|
"Prefix": mu.Conf.Global.RoutePrefix,
|
||||||
"Shares": shares,
|
"Shares": shares,
|
||||||
|
@ -72,7 +72,7 @@ func (mu *MegaUploader) uploadUI(w http.ResponseWriter, r *http.Request) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
viewurl = url.URL{}
|
viewurl = url.URL{}
|
||||||
}
|
}
|
||||||
w.Header().Set("Content-Type", "text/html")
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
tmpl.Execute(w, map[string]interface{}{
|
tmpl.Execute(w, map[string]interface{}{
|
||||||
"Prefix": mu.Conf.Global.RoutePrefix,
|
"Prefix": mu.Conf.Global.RoutePrefix,
|
||||||
"Share": share,
|
"Share": share,
|
||||||
|
|
Loading…
Reference in a new issue