--- loncom/auth/lonacc.pm 2014/10/18 21:40:06 1.159 +++ loncom/auth/lonacc.pm 2016/08/05 20:27:18 1.159.2.2 @@ -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.2 2016/08/05 20:27:18 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -109,7 +109,6 @@ sub cleanup { my ($r)=@_; if (! $r->is_initial_req()) { return DECLINED; } &Apache::lonnet::save_cache(); - &Apache::lontexconvert::jsMath_reset(); return OK; } @@ -290,7 +289,10 @@ sub sso_login { return undef; } - my ($user) = ($r->user =~ m/([a-zA-Z0-9_\-@.]*)/); + my ($user) = ($r->user =~ m/^($match_username)$/); + if ($user eq '') { + return undef; + } my $query = $r->args; my %form;