[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm

raeburn raeburn at source.lon-capa.org
Tue Dec 7 18:19:00 EST 2021


raeburn		Tue Dec  7 23:19:00 2021 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - Change in rev. 1.154 should also apply to xlsx, docx, pptx, xlsm, docm and
    pptm files uploaded to a user's portfolio. Eliminate extra byte (line feed),
    which would cause Excel to prompt user to "repair" file after download.
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.201 loncom/auth/lonacc.pm:1.202
--- loncom/auth/lonacc.pm:1.201	Tue Nov 30 15:55:40 2021
+++ loncom/auth/lonacc.pm	Tue Dec  7 23:19:00 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.201 2021/11/30 15:55:40 raeburn Exp $
+# $Id: lonacc.pm,v 1.202 2021/12/07 23:19:00 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -160,7 +160,8 @@
                         if (length($value) == 1) {
                             $value=~s/[\r\n]$//;
                         }
-                    } elsif ($fname =~ /\.(xls|doc|ppt)(x|m)$/i) {
+                    } 
+                    if ($fname =~ /\.(xls|doc|ppt)(x|m)$/i) {
                         $value=~s/[\r\n]$//;
                     }
                     if (ref($fields) eq 'ARRAY') {




More information about the LON-CAPA-cvs mailing list