validator/httpd/cgi-bin check,1.519,1.520

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

Modified Files:
	check 
Log Message:
small hack to fix the soap fault output.
We should however sooner or later look into a real clean fix, 
see: http://www.w3.org/Bugs/Public/show_bug.cgi?id=2131



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.519
retrieving revision 1.520
diff -u -d -r1.519 -r1.520
--- check	17 May 2007 02:38:13 -0000	1.519
+++ check	17 May 2007 04:30:00 -0000	1.520
@@ -881,6 +881,11 @@
     $template = $File->{Templates}->{SOAPDisabled};
   } elsif ($File->{'Error Flagged'}) { # should send SOAP fault message
     $template = $File->{Templates}->{SOAPFault};
+    # we fill the soap fault template 
+    #with the variables that had been passed to the HTML fatal error template
+    foreach my $fault_param ($File->{Templates}->{Error}->param()) {
+      $template->param($fault_param => $File->{Templates}->{Error}->param($fault_param));
+    }
   } else {
     $template = $File->{Templates}->{SOAP};
   }

Received on Thursday, 17 May 2007 04:30:07 UTC