]> Cypherpunks repositories - gostls13.git/commit
html/template: fix two unrelated bugs
authorRob Pike <r@golang.org>
Wed, 9 Apr 2014 05:57:50 +0000 (15:57 +1000)
committerRob Pike <r@golang.org>
Wed, 9 Apr 2014 05:57:50 +0000 (15:57 +1000)
commit51fba7d8f543e9a3d1c192f9a4e1fa9e29ccc998
tree086f312c336888d8159a6fc82082d6d91e73df9b
parent56294f4adfb880e41c6a4111241d795191d5dc0b
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 #7379.

LGTM=mikesamuel
R=mikesamuel
CC=golang-codereviews
https://golang.org/cl/85240043
src/pkg/html/template/escape.go
src/pkg/html/template/escape_test.go