diff options
Diffstat (limited to 'cnhttp.go')
-rw-r--r-- | cnhttp.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -package main +package main // import "contnet.org/util/cn-http" import ( "bytes" @@ -274,7 +274,7 @@ func (srv *server) cnpParamsToHTTP(w http.ResponseWriter, resp *cnp.Response) { } if n := resp.Name(); n != "" { w.Header().Set("Content-Disposition", "inline; filename=\""+strings.Map(func(r rune) rune { - if r < ' ' || r == ' ' || r == '\'' { // filter out nulls, control codes, newlines and quotes + if r < ' ' || r == '"' || r == '\'' { // filter out nulls, control codes, newlines and quotes return -1 } return r |