diff options
author | Rob Pike <r@golang.org> | 2015-03-20 10:47:52 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2015-03-20 19:57:45 +0000 |
commit | 11dba2ec2d8fcedc1da0103925c254586ef51120 (patch) | |
tree | 1d66a39e3293847dae8d3c52d7237fce58338318 /src/cmd/internal/gc/syntax.go | |
parent | 3f12d271335abc9d49d419247528cf286a04f9a6 (diff) | |
download | go-git-11dba2ec2d8fcedc1da0103925c254586ef51120.tar.gz |
html/template: fix crash when escaping incomplete template
text/template turned this into an error but html/template crashed.
Refactor text/template.Execute to export a new function,
text/template.DefinedTemplates, so html/template can get the same
helpful error message in this case, and invoke it when there is no
definition for a template being escaped.
Fixes #10204.
Change-Id: I1d04e9e7ebca829bc08509caeb65e75da969711f
Reviewed-on: https://go-review.googlesource.com/7855
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/internal/gc/syntax.go')
0 files changed, 0 insertions, 0 deletions