- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Sep 2007 08:20:25 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv14764 Modified Files: check Log Message: for the sake of a lighter memory footprint, making sure that the whole source of the document is only passed to the template object if necessary (that is, at this point, if the show source option is on, or if the file was uploaded or direct input was used). Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.560 retrieving revision 1.561 diff -u -d -r1.560 -r1.561 --- check 5 Sep 2007 08:14:32 -0000 1.560 +++ check 5 Sep 2007 08:20:23 -0000 1.561 @@ -961,7 +961,8 @@ $template->param(file_warnings => $File->{Warnings}); $template->param(tidy_output => $File->{'Tidy'}); -$template->param(file_source => &source($File)); +$template->param(file_source => &source($File)) + if ($template->param('opt_show_source') or ($File->{'Is Upload'}) or ($File->{'Direct Input'})); #$template->param('opt_show_esis' => TRUE) # if $File->{Opt}->{'Show ESIS'}; #$template->param('opt_show_raw_errors' => TRUE)
Received on Wednesday, 5 September 2007 08:20:30 UTC