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

validator/httpd/cgi-bin check,1.415,1.416

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 09 May 2005 05:51:36 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1DV1B2-0001eo-7N@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
Doctype detection should not expect only PUBLIC, SYSTEM + a system identifier 
would also validate.

see also http://www.w3.org/Bugs/Public/show_bug.cgi?id=1184#c2



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.415
retrieving revision 1.416
diff -u -d -r1.415 -r1.416
--- check	28 Apr 2005 06:13:22 -0000	1.415
+++ check	9 May 2005 05:51:33 -0000	1.416
@@ -1735,7 +1735,7 @@
 
   my $dtd = sub {
     return if $File->{Root};
-    ($File->{Root}, $File->{DOCTYPE}) = shift =~  m(<!DOCTYPE\s+(\w+)\s+PUBLIC\s+(?:[\'\"])([^\"\']+)(?:[\"\']).*>)si;
+    ($File->{Root}, $File->{DOCTYPE}) = shift =~  m(<!DOCTYPE\s+(\w+)\s+(?:PUBLIC|SYSTEM)\s+(?:[\'\"])([^\"\']+)(?:[\"\']).*>)si;
   };
 
   my $start = sub {
Received on Monday, 9 May 2005 05:51:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:48 GMT