[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 13 Jan 2004 15:48:25 -0000


matthew		Tue Jan 13 10:48:25 2004 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  Bug 2329: tab seperated upload ate multiple tabs instead of recognizing blank
  fields.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.170 loncom/interface/loncommon.pm:1.171
--- loncom/interface/loncommon.pm:1.170	Fri Jan  2 16:00:56 2004
+++ loncom/interface/loncommon.pm	Tue Jan 13 10:48:25 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.170 2004/01/02 21:00:56 www Exp $
+# $Id: loncommon.pm,v 1.171 2004/01/13 15:48:25 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2600,7 +2600,7 @@
         }
     } elsif ($ENV{'form.upfiletype'} eq 'tab') {
         my $i=0;
-        foreach (split(/\t+/,$record)) {
+        foreach (split(/\t/,$record)) {
             my $field=$_;
             $field=~s/^(\"|\')//;
             $field=~s/(\"|\')$//;