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

Issue 1960050: code review 1960050: go/doc: use correct escaper for URL (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by rsc
Modified:
14 years, 11 months ago
Reviewers:
CC:
gri, golang-dev
Visibility:
Public.

Description

go/doc: use correct escaper for URL Despite the name, URL escaping is for a small subpiece of the URL only. This particular URL is being emitted in an <a href=""> tag and in that context it should be HTML escaped, not URL escaped. In addition to fixing a bug, this change cuts a dependency chain from go/doc to net, clearing the way for use of cgo (which imports go/doc) during the compilation of package net.

Patch Set 1 #

Patch Set 2 : code review 1960050: go/doc: use correct escaper for URL #

Patch Set 3 : code review 1960050: go/doc: use correct escaper for URL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M src/pkg/go/doc/comment.go View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello gri (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 11 months ago (2010-08-25 05:26:55 UTC) #1
gri
LGTM - gri On Tue, Aug 24, 2010 at 10:26 PM, <rsc@golang.org> wrote: > Reviewers: ...
14 years, 11 months ago (2010-08-25 06:52:18 UTC) #2
rsc
14 years, 11 months ago (2010-08-25 15:00:45 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=b3d25117271a ***

go/doc: use correct escaper for URL

Despite the name, URL escaping is for a small subpiece of the URL only.
This particular URL is being emitted in an <a href=""> tag and in that
context it should be HTML escaped, not URL escaped.

In addition to fixing a bug, this change cuts a dependency chain
from go/doc to net, clearing the way for use of cgo
(which imports go/doc) during the compilation of package net.

R=gri
CC=golang-dev
http://codereview.appspot.com/1960050
Sign in to reply to this message.

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