- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 07 May 2007 16:14:17 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv8853/httpd/cgi-bin Modified Files: check Log Message: better display of information in case of fatal error (show preparse warning, e.g http://www.w3.org/Bugs/Public/show_bug.cgi?id=2572 ) and revalidation table. Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.516 retrieving revision 1.517 diff -u -d -r1.516 -r1.517 --- check 7 May 2007 14:42:31 -0000 1.516 +++ check 7 May 2007 16:14:15 -0000 1.517 @@ -490,10 +490,8 @@ # # Handle any Fallback or Override for the charset. -if (charset_not_equal($File->{Opt}->{Charset}, '(detect automatically)') - and charset_not_equal($File->{Opt}->{Charset}, '')) { +if (charset_not_equal($File->{Opt}->{Charset}, '(detect automatically)')) { # charset=foo was given to the CGI and it wasn't "autodetect" or empty. - # # Extract the user-requested charset from CGI param. my ($override, undef) = split(/\s/, $File->{Opt}->{Charset}, 2); @@ -2108,6 +2106,8 @@ return unless $File->{'Error Flagged'}; return if $File->{'Error Handled'}; # Previous error, keep going. + $File->{Templates}->{Error}->param(fatal_error => TRUE); + if ($File->{Opt}->{Output} eq 'html') { &prep_template($File, $File->{Templates}->{Error}); print $File->{Templates}->{Error}->output;
Received on Monday, 7 May 2007 16:14:19 UTC