Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2513)

Issue 26090043: code review 26090043: net/http: escape url/html in directory index

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by mattn
Modified:
10 years, 3 months ago
CC:
golang-codereviews
Visibility:
Public.

Description

net/http: escape url/html in directory index

Patch Set 1 #

Patch Set 2 : diff -r 24e8bd8b8e1d http://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 24e8bd8b8e1d http://go.googlecode.com/hg/ #

Patch Set 4 : diff -r d76ade89413f http://go.googlecode.com/hg/ #

Patch Set 5 : diff -r d76ade89413f http://go.googlecode.com/hg/ #

Patch Set 6 : diff -r d76ade89413f http://go.googlecode.com/hg/ #

Patch Set 7 : diff -r d2f41f387683 http://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 8 : diff -r 821bb484720f http://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 9 : diff -r c4b7c0824984 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r c4b7c0824984 https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r c4b7c0824984 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r c4b7c0824984 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 13 : diff -r 9963a911bc14 http://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -2 lines) Patch
M src/pkg/net/http/fs.go View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +26 lines, -2 lines 0 comments Download
M src/pkg/net/http/fs_test.go View 1 2 3 4 5 6 7 8 9 3 chunks +61 lines, -0 lines 0 comments Download

Messages

Total messages: 17
mattn
Hello golang-dev@googlegroups.com, I'd like you to review this change to http://go.googlecode.com/hg/
10 years, 5 months ago (2013-11-13 14:13:53 UTC) #1
bradfitz
Remove the TODO a line above that, and please add a test. On Wed, Nov ...
10 years, 5 months ago (2013-11-13 15:08:26 UTC) #2
mattn
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 5 months ago (2013-11-14 00:36:41 UTC) #3
mattn
On 2013/11/14 00:36:41, mattn wrote: > Hello mailto:golang-dev@googlegroups.com, mailto:bradfitz@golang.org (cc: > mailto:golang-dev@googlegroups.com), > > Please ...
10 years, 5 months ago (2013-11-15 08:24:14 UTC) #4
bradfitz
The tree is closed for two weeks anyway. But looks fine. I haven't looked at ...
10 years, 5 months ago (2013-11-15 14:51:32 UTC) #5
r
LGTM but wait for bradfitz https://codereview.appspot.com/26090043/diff/100001/src/pkg/net/http/fs_test.go File src/pkg/net/http/fs_test.go (right): https://codereview.appspot.com/26090043/diff/100001/src/pkg/net/http/fs_test.go#newcode467 src/pkg/net/http/fs_test.go:467: t.Errorf("directory index got link ...
10 years, 4 months ago (2013-12-09 20:58:14 UTC) #6
mattn
https://codereview.appspot.com/26090043/diff/100001/src/pkg/net/http/fs_test.go File src/pkg/net/http/fs_test.go (right): https://codereview.appspot.com/26090043/diff/100001/src/pkg/net/http/fs_test.go#newcode467 src/pkg/net/http/fs_test.go:467: t.Errorf("directory index got link %q, should be matched %q", ...
10 years, 4 months ago (2013-12-10 00:40:48 UTC) #7
bradfitz
https://codereview.appspot.com/26090043/diff/120001/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): https://codereview.appspot.com/26090043/diff/120001/src/pkg/net/http/fs.go#newcode77 src/pkg/net/http/fs.go:77: fmt.Fprintf(w, "<a href=\"%s\">%s</a>\n", url.QueryEscape(name), htmlEscape(name)) why url.QueryEscape? This isn't ...
10 years, 4 months ago (2013-12-10 11:32:04 UTC) #8
mattn
https://codereview.appspot.com/26090043/diff/120001/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): https://codereview.appspot.com/26090043/diff/120001/src/pkg/net/http/fs.go#newcode77 src/pkg/net/http/fs.go:77: fmt.Fprintf(w, "<a href=\"%s\">%s</a>\n", url.QueryEscape(name), htmlEscape(name)) On 2013/12/10 11:32:04, bradfitz ...
10 years, 4 months ago (2013-12-10 12:01:25 UTC) #9
mattn
ping bradfitz
10 years, 4 months ago (2013-12-18 06:00:48 UTC) #10
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:05 UTC) #11
mattn
10 years, 4 months ago (2013-12-21 15:04:47 UTC) #12
mattn
I modified code to percent escape without some ascii characters. I know this is not ...
10 years, 4 months ago (2013-12-21 15:06:12 UTC) #13
gobot
R=bradfitz@golang.org (assigned by mattn.jp@gmail.com)
10 years, 4 months ago (2013-12-23 15:01:31 UTC) #14
bradfitz
not lgtm https://codereview.appspot.com/26090043/diff/140002/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): https://codereview.appspot.com/26090043/diff/140002/src/pkg/net/http/fs.go#newcode64 src/pkg/net/http/fs.go:64: var noEsc = []byte(`!$&'()*+,-./0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~`) there are packages ...
10 years, 4 months ago (2013-12-26 19:29:41 UTC) #15
mattn
https://codereview.appspot.com/26090043/diff/140002/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): https://codereview.appspot.com/26090043/diff/140002/src/pkg/net/http/fs.go#newcode64 src/pkg/net/http/fs.go:64: var noEsc = []byte(`!$&'()*+,-./0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~`) On 2013/12/26 19:29:42, bradfitz wrote: ...
10 years, 4 months ago (2013-12-27 01:56:14 UTC) #16
bradfitz
10 years, 3 months ago (2014-01-14 21:24:15 UTC) #17
R=close

Fixed by b18d37534a92 (net/http: escape contents of the directory indexes
generated by FileServer)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b