W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2007

perl/modules/W3C/LogValidator/lib/W3C LogValidator.pm,1.20,1.21

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 24 Jul 2007 06:08:13 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IDDZ7-0000em-Ar@lionel-hutz.w3.org>

Update of /sources/public/perl/modules/W3C/LogValidator/lib/W3C
In directory hutz:/tmp/cvs-serv1617/lib/W3C

Modified Files:
	LogValidator.pm 
Log Message:
Adding an option to allow URIs with query strings, e.g
http://www.example.com/script?foo=bar

Such URIs in the logs were previously ignored systematically, now will
still be ignored by default, but with the configuration option
ExcludeCGI 0
they will be processed as "normal" URIs.




Index: LogValidator.pm
===================================================================
RCS file: /sources/public/perl/modules/W3C/LogValidator/lib/W3C/LogValidator.pm,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- LogValidator.pm	17 Jul 2007 04:15:31 -0000	1.20
+++ LogValidator.pm	24 Jul 2007 06:08:10 -0000	1.21
@@ -278,7 +278,7 @@
 					my $tmp_record_mime_type = $self->find_mime_type($tmp_record, $logtype);
 					my $tmp_record_HTTP_code = $self->find_HTTP_code($tmp_record, $logtype);
 					my $tmp_record_referer = $self->find_referer($tmp_record, $logtype);
-					if ($self->no_cgi($tmp_record)) {
+					if ($self->no_cgi($tmp_record) or ($config{LogProcessor}{ExcludeCGI} eq 0)) {
 						$self->add_uri($tmp_record_uri);
 						$self->add_mime_type($tmp_record_uri, $tmp_record_mime_type);
 						$self->add_HTTP_code($tmp_record_uri,$tmp_record_HTTP_code);
Received on Tuesday, 24 July 2007 06:08:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:58 GMT