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

validator/httpd/cgi-bin check,1.574,1.575

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 09 Oct 2007 16:37:08 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IfI4y-0005kX-Db@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
IIS workaround, thanks to David Tibbe and Allan Smith.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.574
retrieving revision 1.575
diff -u -d -r1.574 -r1.575
--- check	9 Oct 2007 00:48:23 -0000	1.574
+++ check	9 Oct 2007 16:37:05 -0000	1.575
@@ -2020,6 +2020,10 @@
     }
   }
 
+  # IIS reportedly does not provide the $path_info we expect - hack around it.
+  $path_info =~ s|(.*)/check\.pl(.*)$|$2|
+    if ($ENV{SERVER_SOFTWARE} and $ENV{SERVER_SOFTWARE} =~ /Microsoft-IIS/);
+
   # apparently, with mod_perl2, $path_info is empty even if it should be filled
   # working around that
   if (!$path_info) {
Received on Tuesday, 9 October 2007 16:37:17 GMT

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