Explorar el Código

Escape the page title

Lucas Stadler %!s(int64=9) %!d(string=hace) años
padre
commit
15376376b4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      go/blog/blog.go

+ 1 - 1
go/blog/blog.go

@ -180,7 +180,7 @@ func main() {
180 180
</head>
181 181
182 182
<body>
183
`, flags.title, flags.css)
183
`, template.HTMLEscapeString(flags.title), flags.css)
184 184
185 185
	if flags.reverse {
186 186
		l := len(posts)