From: Rob H. <for...@us...> - 2001-11-22 08:29:02
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv16902/bin Modified Files: sandweb.cgi Log Message: * fixed weird formatting of view and edit templates * updated File.txt documentation. I decided to document the location/file behavior as it *should* work; the problem I was seeing before is actually sandweb.cgi's problem. It needs an extra routine to support the correct behavior ( the filename needs to be extracted from the absolute or relative path ). Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.67 retrieving revision 1.68 diff -U2 -r1.67 -r1.68 --- sandweb.cgi 2001/11/22 01:07:37 1.67 +++ sandweb.cgi 2001/11/22 08:28:59 1.68 @@ -338,5 +338,5 @@ $error = "This does not appear to be a text file."; } - my @tmp = (); + my @tmp; open (FILE, "$location/$filename"); foreach my $line (<FILE>) { @@ -363,5 +363,5 @@ $error = "This does not appear to be a text file."; } - my @tmp = (); + my @tmp; open (FILE, "$location/$filename"); foreach my $line (<FILE>) { |