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

Issue 85240043: code review 85240043: html/template: fix two unrelated bugs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by r
Modified:
10 years ago
Reviewers:
MikeSamuel
CC:
MikeSamuel, golang-codereviews
Visibility:
Public.

Description

html/template: fix two unrelated bugs 1) The code to catch an exception marked the template as escaped when it was not yet, which caused subsequent executions of the template to not escape properly. 2) ensurePipelineContains needs to handled Field as well as Identifier nodes. Fixes issue 7379.

Patch Set 1 #

Patch Set 2 : diff -r 63e959ff3492 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 63e959ff3492 https://code.google.com/p/go/ #

Total comments: 4

Patch Set 4 : diff -r 52e4db62b469 https://code.google.com/p/go/ #

Patch Set 5 : diff -r d442518ebfcb https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -15 lines) Patch
M src/pkg/html/template/escape.go View 1 2 3 3 chunks +36 lines, -15 lines 0 comments Download
M src/pkg/html/template/escape_test.go View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 6
r
Hello mikesamuel@gmail.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years ago (2014-04-08 04:06:15 UTC) #1
MikeSamuel
https://codereview.appspot.com/85240043/diff/40001/src/pkg/html/template/escape.go File src/pkg/html/template/escape.go (right): https://codereview.appspot.com/85240043/diff/40001/src/pkg/html/template/escape.go#newcode46 src/pkg/html/template/escape.go:46: tmpl.escaped = true I'm fuzzy on the relationship between ...
10 years ago (2014-04-08 18:18:48 UTC) #2
r
Hello mikesamuel@gmail.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years ago (2014-04-09 03:04:25 UTC) #3
r
https://codereview.appspot.com/85240043/diff/40001/src/pkg/html/template/escape.go File src/pkg/html/template/escape.go (right): https://codereview.appspot.com/85240043/diff/40001/src/pkg/html/template/escape.go#newcode46 src/pkg/html/template/escape.go:46: tmpl.escaped = true On 2014/04/08 18:18:49, MikeSamuel wrote: > ...
10 years ago (2014-04-09 03:04:27 UTC) #4
MikeSamuel
LGTM
10 years ago (2014-04-09 05:20:46 UTC) #5
r
10 years ago (2014-04-09 05:57:38 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=8b7f9e17e68d ***

html/template: fix two unrelated bugs
1) The code to catch an exception marked the template as escaped
when it was not yet, which caused subsequent executions of the
template to not escape properly.
2) ensurePipelineContains needs to handled Field as well as
Identifier nodes.

Fixes issue 7379.

LGTM=mikesamuel
R=mikesamuel
CC=golang-codereviews
https://codereview.appspot.com/85240043
Sign in to reply to this message.

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