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

raeburn raeburn at source.lon-capa.org
Wed Mar 11 13:27:15 EDT 2015


raeburn		Wed Mar 11 17:27:15 2015 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/auth	lonacc.pm 
  Log:
  - For 2.11
    Backport 1.161
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.159 loncom/auth/lonacc.pm:1.159.2.1
--- loncom/auth/lonacc.pm:1.159	Sat Oct 18 21:40:06 2014
+++ loncom/auth/lonacc.pm	Wed Mar 11 17:27:15 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.159 2014/10/18 21:40:06 raeburn Exp $
+# $Id: lonacc.pm,v 1.159.2.1 2015/03/11 17:27:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -290,7 +290,10 @@
 	return undef;
     }
 
-    my ($user) = ($r->user =~ m/([a-zA-Z0-9_\- at .]*)/);
+    my ($user) = ($r->user =~ m/^($match_username)$/);
+    if ($user eq '') {
+        return undef;
+    }
 
     my $query = $r->args;
     my %form;




More information about the LON-CAPA-cvs mailing list