--- loncom/auth/switchserver.pm 2010/09/06 15:45:08 1.28.2.3 +++ loncom/auth/switchserver.pm 2011/08/02 14:20:42 1.28.2.4 @@ -1,7 +1,7 @@ # The LearningOnline Network # Switch Servers Handler # -# $Id: switchserver.pm,v 1.28.2.3 2010/09/06 15:45:08 raeburn Exp $ +# $Id: switchserver.pm,v 1.28.2.4 2011/08/02 14:20:42 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -117,7 +117,7 @@ sub handler { 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; }