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

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 UTC