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

raeburn raeburn at source.lon-capa.org
Thu Dec 21 17:06:45 EST 2017


raeburn		Thu Dec 21 22:06:45 2017 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - Remove final line feed for xlsm, docm and pptm files so uploaded
    file contains same number of bytes as original file. Microsoft Office
    applications should no longer prompt user to "repair" file after download.
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.167 loncom/auth/lonacc.pm:1.168
--- loncom/auth/lonacc.pm:1.167	Mon May  8 22:47:01 2017
+++ loncom/auth/lonacc.pm	Thu Dec 21 22:06:44 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.167 2017/05/08 22:47:01 raeburn Exp $
+# $Id: lonacc.pm,v 1.168 2017/12/21 22:06:44 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -159,7 +159,7 @@
                         if (length($value) == 1) {
                             $value=~s/[\r\n]$//;
                         }
-                    } elsif ($fname =~ /\.(xls|doc|ppt)x$/i) {
+                    } elsif ($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