W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2005

validator/httpd/cgi-bin check,1.367,1.368

From: Ville Skytta <ville@dev.w3.org>
Date: Sun, 09 Jan 2005 14:29:36 +0000
To: www-validator-cvs@w3.org
Message-ID: <E1Cne4W-0003PJ-To@lionel-hutz.w3.org>

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv12787/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Escape "file URI" properly in CSS validator URI query string param.

Generally speaking, it would be better to do the escaping consistently in the
templates wherever possible instead of in "check", no?


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.367
retrieving revision 1.368
diff -u -d -r1.367 -r1.368
--- check	9 Jan 2005 11:24:33 -0000	1.367
+++ check	9 Jan 2005 14:29:34 -0000	1.368
@@ -936,6 +936,7 @@
   #
   # The URI...
   $T->param(file_uri => &ent($File->{URI}));
+  $T->param(file_uri_param => uri_escape($File->{URI}));
 
   #
   # Metadata...
@@ -973,8 +974,6 @@
   my $File = shift;
   my $T    = shift;
 
-  $T->param(file_uri => &ent($File->{URI}));
-
   my $gifborder   = ' border="0"';
   my $xhtmlendtag = '';
   my($image_uri, $alttext, $gifhw);
Received on Sunday, 9 January 2005 14:29:37 UTC

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