summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2007-05-17 04:30:00 +0000
committerot <ot@localhost>2007-05-17 04:30:00 +0000
commit4367be154c886351240960830597fc536a1f859b (patch)
tree1f64775d3a17ce9e925fc526efd94698cd925f3d
parente18fe21bc4fa328bc89355829bc2d909b2214a48 (diff)
downloadmarkup-validator-4367be154c886351240960830597fc536a1f859b.zip
markup-validator-4367be154c886351240960830597fc536a1f859b.tar.gz
markup-validator-4367be154c886351240960830597fc536a1f859b.tar.bz2
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
-rwxr-xr-xhttpd/cgi-bin/check9
1 files changed, 7 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 73a9d59..a71cffa 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.519 2007-05-17 02:38:13 ot Exp $
+# $Id: check,v 1.520 2007-05-17 04:30:00 ot Exp $
#
# Disable buffering on STDOUT!
@@ -180,7 +180,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.519 $;
+ $VERSION = q$Revision: 1.520 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -881,6 +881,11 @@ if ($File->{Opt}->{Output} eq 'xml') {
$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};
}