--- loncom/interface/loncreateuser.pm 2004/07/03 20:45:23 1.84 +++ loncom/interface/loncreateuser.pm 2004/08/24 23:50:15 1.86 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.84 2004/07/03 20:45:23 albertel Exp $ +# $Id: loncreateuser.pm,v 1.86 2004/08/24 23:50:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -174,8 +174,8 @@ sub print_user_modification_page { my $ccuname=$ENV{'form.ccuname'}; my $ccdomain=$ENV{'form.ccdomain'}; - $ccuname=~s/\W//gs; - $ccdomain=~s/\W//gs; + $ccuname=~s/[\W|_]//gs; + $ccdomain=~s/[\W|_]//gs; unless (($ccuname) && ($ccdomain)) { &print_username_entry_form($r); @@ -389,7 +389,7 @@ END $sortkey.="\0".$coursedata{'description'}; } else { $carea=&mt('Unavailable course').': '.$area; - $sortkey.="\0".&mt('Unavailable course'); + $sortkey.="\0".&mt('Unavailable course').': '.$area; } $inccourses{$1.'_'.$2}=1; if ((&Apache::lonnet::allowed('c'.$role_code,$1.'/'.$2)) ||