[freeside-commits] freeside/httemplate/misc
cust_main_note-import.cgi, 1.2.2.1, 1.2.2.2
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Apr 3 12:38:31 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv22978
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_main_note-import.cgi
Log Message:
correct handling of non-unix line termination (backport)
Index: cust_main_note-import.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cust_main_note-import.cgi,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -d -r1.2.2.1 -r1.2.2.2
--- cust_main_note-import.cgi 20 Mar 2007 20:21:58 -0000 1.2.2.1
+++ cust_main_note-import.cgi 3 Apr 2007 19:38:29 -0000 1.2.2.2
@@ -122,7 +122,7 @@
% my $line;
% my $row = 0;
% while ( defined($line=<$fh>) ) {
-% chomp $line;
+% $line =~ s/(\S*)\s*$/$1/;
% $line =~ s/^(.*)(#!).*/$1/;
%
% $csv->parse($line) or die "can't parse line: " . $csv->error_input();
More information about the freeside-commits
mailing list