W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2010

markup-validator commit: Fix double escaping of '"&"' in messages; they're entity escaped in templates.

From: Mercurial notifier <nobody@w3.org>
Date: Sun, 04 Jul 2010 10:08:24 +0000
To: markup-validator updates <www-validator-cvs@w3.org>
Message-Id: <E1OVM7c-000234-9c@blinky.w3.org>
changeset:   3117:4cf7f5784fb7
tag:         tip
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Sun Jul 04 13:07:48 2010 +0300
files:       httpd/cgi-bin/check
description:
Fix double escaping of '"&"' in messages; they're entity escaped in templates.


diff -r 8d66ff1be0bf -r 4cf7f5784fb7 httpd/cgi-bin/check
--- a/httpd/cgi-bin/check	Sun Jul 04 13:01:40 2010 +0300
+++ b/httpd/cgi-bin/check	Sun Jul 04 13:07:48 2010 +0300
@@ -3542,8 +3542,6 @@
     $err->{type} = $mess->{primary_message}{Severity};
     $err->{msg}  = $mess->{primary_message}{Text};
 
-    $err->{msg} =~ s/"&"/"&amp;"/gsi;
-
     # our parser OpenSP is not quite XML-aware, or XML Namespaces Aware,
     # so we filter out a few errors for now
 
Received on Sunday, 4 July 2010 10:08:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC