]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: Do not pass through invalid utf8 bytes
authorAlex A Skinner <alex@lx.lc>
Tue, 30 Jul 2013 04:11:47 +0000 (14:11 +1000)
committerAndrew Gerrand <adg@golang.org>
Tue, 30 Jul 2013 04:11:47 +0000 (14:11 +1000)
commit789e1c351e6fca96fe3cec467029732c03d55d64
treecb51c3de37e26fe72072ee9307dacd463b0b2310
parent51b3611a72203fc2fe864567daaf4d55aca8408d
encoding/xml: Do not pass through invalid utf8 bytes

EscapeText now escapes 0xFFFD returned from DecodeRune as 0xFFFD, rather than passing through the original byte.
Fixes #5880.

R=golang-dev, r, bradfitz, adg
CC=golang-dev
https://golang.org/cl/11975043
src/pkg/encoding/xml/xml.go
src/pkg/encoding/xml/xml_test.go