[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm
raeburn
raeburn at source.lon-capa.org
Sun Mar 9 22:07:01 EDT 2014
raeburn Mon Mar 10 02:07:01 2014 EDT
Modified files:
/loncom/auth lonacc.pm
Log:
- Change to address bug 6587 in lonacc.pm (rev. 1.139) was causing uploaded
xlsx files to include an extra byte (line feed), which would cause
Excel to prompt user to "repair" file after download.
- Re-enable removal of final line feed for xlsx, docx and pptx files so
uploaded file contains same number of bytes as original file.
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.153 loncom/auth/lonacc.pm:1.154
--- loncom/auth/lonacc.pm:1.153 Thu Jan 30 12:15:12 2014
+++ loncom/auth/lonacc.pm Mon Mar 10 02:07:01 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Cookie Based Access Handler
#
-# $Id: lonacc.pm,v 1.153 2014/01/30 12:15:12 raeburn Exp $
+# $Id: lonacc.pm,v 1.154 2014/03/10 02:07:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -160,6 +160,8 @@
if (length($value) == 1) {
$value=~s/[\r\n]$//;
}
+ } elsif ($fname =~ /\.(xls|doc|ppt)x$/i) {
+ $value=~s/[\r\n]$//;
}
if (ref($fields) eq 'ARRAY') {
next if (!grep(/^\Q$name\E$/,@{$fields}));
More information about the LON-CAPA-cvs
mailing list