--- loncom/interface/lontrackstudent.pm 2006/05/30 12:46:09 1.20 +++ loncom/interface/lontrackstudent.pm 2006/12/06 22:22:37 1.21 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lontrackstudent.pm,v 1.20 2006/05/30 12:46:09 www Exp $ +# $Id: lontrackstudent.pm,v 1.21 2006/12/06 22:22:37 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -537,9 +537,10 @@ sub handler { # For now, just show all the data, in the future allow selection of # a student my ($sname,$sdom) = split(':',$env{'form.selected_student'}); - if ($sname =~ /^\w*$/ && $sdom =~ /^\w*$/) { + if ($sname =~ /^$LONCAPA::username_re$/ + && $sdom =~ /^$LONCAPA::domain_re$/) { $r->print('
'.&mt(<'.&mt('Unable to process for [_1]@[_2]',
+ $r->print('
'.&mt('Unable to process for [_1]:[_2]',
$sname,$sdom).'
');
}
} else {