From 55f0c8b2cddff16de2bf101ec997bf96813615d4 Mon Sep 17 00:00:00 2001 From: Andrew Balholm Date: Fri, 27 Jul 2012 09:27:10 +1000 Subject: [PATCH] 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 --- .../exp/html/testlogs/plain-text-unsafe.dat.log | 2 +- src/pkg/exp/html/token.go | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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 "