--- loncom/auth/switchserver.pm 2010/09/06 15:44:05 1.30 +++ loncom/auth/switchserver.pm 2011/08/02 14:17:13 1.31 @@ -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 @@ 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; }