From: Andrew Balholm Date: Thu, 26 Jul 2012 23:27:10 +0000 (+1000) Subject: exp/html: replace NUL bytes in plaintext, raw text, and RCDATA X-Git-Tag: go1.1rc2~2773 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=55f0c8b2cddff16de2bf101ec997bf96813615d4;p=gostls13.git exp/html: replace NUL bytes in plaintext, raw text, and RCDATA If NUL bytes occur inside certain elements, convert them to U+FFFD replacement character. Pass 1 additional test. R=nigeltao CC=golang-dev https://golang.org/cl/6452047 --- diff --git a/src/pkg/exp/html/testlogs/plain-text-unsafe.dat.log b/src/pkg/exp/html/testlogs/plain-text-unsafe.dat.log index 56da0ba88f..65ee908f55 100644 --- a/src/pkg/exp/html/testlogs/plain-text-unsafe.dat.log +++ b/src/pkg/exp/html/testlogs/plain-text-unsafe.dat.log @@ -7,7 +7,7 @@ PASS "\x00\n " PASS "