W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2006

validator/httpd/cgi-bin check,1.432.2.17,1.432.2.18

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 23 Oct 2006 05:14:48 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Gbs9A-0006yn-V1@lionel-hutz.w3.org>

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

Modified Files:
      Tag: validator-0_7-branch
	check 
Log Message:
change in opensp 1.5.2 broke our parsing of the message-id - fixed.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.432.2.17
retrieving revision 1.432.2.18
diff -u -d -r1.432.2.17 -r1.432.2.18
--- check	18 Oct 2006 06:22:31 -0000	1.432.2.17
+++ check	23 Oct 2006 05:14:46 -0000	1.432.2.18
@@ -1450,6 +1450,12 @@
       $err->{char} = $l;
     }
     $err->{num}  = $errors[4] || '';
+    
+    # the following is necessary for openSP 1.5.2+, 
+    # which seems to have introduced a change in error messagenumbering
+    # syntax appears to be session_id.error_id - We keep only the latter part
+    $err->{num}  =~ s/(.*)\.//;
+    
     $err->{type} = $errors[5] || '';
     if ($err->{type} eq 'E' or $err->{type} eq 'X' or $err->{type} eq 'Q') {
       $err->{msg}  = join ':', @errors[6 .. $#errors];
Received on Monday, 23 October 2006 05:14:58 GMT

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