]> Cypherpunks repositories - gostls13.git/commit
text/template: pipelined arg was not typechecked
authorRob Pike <r@golang.org>
Tue, 3 Apr 2012 01:44:52 +0000 (11:44 +1000)
committerRob Pike <r@golang.org>
Tue, 3 Apr 2012 01:44:52 +0000 (11:44 +1000)
commit065db4ea99f80cce6d9ed794467697955f0eaa2e
treed22a9bc9efb8c48779e2ea98bae8eeda22f04efa
parentd3c92b7c903064f31c6f0aec4c3be5cfd30b0e53
text/template: pipelined arg was not typechecked
Without this fix, an erroneous template causes a panic; should be caught safely.
The bug did not affect correct templates.

Fixes #3267.

R=golang-dev, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5900065
src/pkg/text/template/exec.go
src/pkg/text/template/exec_test.go