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

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 UTC