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

raeburn raeburn at source.lon-capa.org
Tue Aug 2 10:17:13 EDT 2011


raeburn		Tue Aug  2 14:17:13 2011 EDT

  Modified files:              
    /loncom/auth	switchserver.pm 
  Log:
  - Bug 6436.  Typo in regexp added in rev 1.28 so switching server to the 
    home server for Construction Space for: ca or aa role takes precedence 
    over any session hosting restictions.
  
  
Index: loncom/auth/switchserver.pm
diff -u loncom/auth/switchserver.pm:1.30 loncom/auth/switchserver.pm:1.31
--- loncom/auth/switchserver.pm:1.30	Mon Sep  6 15:44:05 2010
+++ loncom/auth/switchserver.pm	Tue Aug  2 14:17:13 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Switch Servers Handler
 #
-# $Id: switchserver.pm,v 1.30 2010/09/06 15:44:05 raeburn Exp $
+# $Id: switchserver.pm,v 1.31 2011/08/02 14:17:13 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -115,7 +115,7 @@
                 if (&Apache::lonnet::homeserver($env{'user.name'},$env{'user.domain'}) eq $env{'form.otherserver'}) {
                     $skip_canhost_check = 1;
                 }
-            } elsif ($env{'form.role'} =~ m{^[ac]a\./($match_domain)/($match_username)/$}) {
+            } elsif ($env{'form.role'} =~ m{^[ac]a\./($match_domain)/($match_username)$}) {
                 if (&Apache::lonnet::homeserver($2,$1) eq $env{'form.otherserver'}) {
                     $skip_canhost_check = 1; 
                 }




More information about the LON-CAPA-cvs mailing list