[Lxr-commits] CVS: lxr source,1.64,1.65
Brought to you by:
ajlittoz
From: Andre-Littoz <ajl...@us...> - 2013-04-08 16:11:33
|
Update of /cvsroot/lxr/lxr In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv32625 Modified Files: source Log Message: source: wrong test Reverse comparison operator (eq used instead of ne) for directory test Also, replace ambiguous message (file does not exist) by (filename filtered out) in case 'filter' rule discarded the file Index: source =================================================================== RCS file: /cvsroot/lxr/lxr/source,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- source 18 Mar 2013 13:20:57 -0000 1.64 +++ source 8 Apr 2013 16:11:29 -0000 1.65 @@ -774,7 +774,7 @@ if ($config->filter && $pathname !~ $config->filter) { makeheader('source'); - print("<p class=\"error\">\n<i>The file $pathname does not exist.</i>\n</p>\n"); + print("<p class=\"error\">\n<i>Filename $pathname is discarded by the present <code>'filter'</code> rule.</i>\n</p>\n"); makefooter('source'); exit; } @@ -785,7 +785,7 @@ if ($HTTP->{'param'}{'_raw'}) { printfile(1); } else { - my $type = ((substr($pathname, -1) eq '/') ? 'source' : 'sourcedir'); + my $type = ((substr($pathname, -1) ne '/') ? 'source' : 'sourcedir'); makeheader($type); printfile(0); |