[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /auth lonacc.pm
raeburn
raeburn at source.lon-capa.org
Wed Sep 5 19:06:53 EDT 2018
raeburn Wed Sep 5 23:06:53 2018 EDT
Modified files: (Branch: version_2_11_X)
/loncom/auth lonacc.pm
Log:
- For 2.11
Backport 1.168, 1.170
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.159.2.5 loncom/auth/lonacc.pm:1.159.2.6
--- loncom/auth/lonacc.pm:1.159.2.5 Sat Jan 21 20:40:46 2017
+++ loncom/auth/lonacc.pm Wed Sep 5 23:06:53 2018
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Cookie Based Access Handler
#
-# $Id: lonacc.pm,v 1.159.2.5 2017/01/21 20:40:46 raeburn Exp $
+# $Id: lonacc.pm,v 1.159.2.6 2018/09/05 23:06:53 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') {
@@ -281,7 +281,6 @@
sub sso_login {
my ($r,$handle,$username) = @_;
- my $lonidsdir=$r->dir_config('lonIDsDir');
if (($r->user eq '') || ($username ne '') || ($r->user eq 'public:public') ||
(defined($env{'user.name'}) && (defined($env{'user.domain'}))
&& ($handle ne ''))) {
More information about the LON-CAPA-cvs
mailing list