--- loncom/homework/grades.pm 2006/11/03 20:04:08 1.383 +++ loncom/homework/grades.pm 2006/12/12 18:15:53 1.384 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.383 2006/11/03 20:04:08 albertel Exp $ +# $Id: grades.pm,v 1.384 2006/12/12 18:15:53 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1513,10 +1513,10 @@ sub gradeBox { $result.=''."\n"; @@ -1758,7 +1758,7 @@ KEYWORDS # Load the other essays for similarity check # my (undef,undef,$essayurl) = &Apache::lonnet::decode_symb($symb); - my ($adom,$aname,$apath)=($essayurl=~/^(\w+)\/(\w+)\/(.*)$/); + my ($adom,$aname,$apath)=($essayurl=~/^($LONCAPA::domain_re)\/($LONCAPA::username_re)\/(.*)$/); $apath=&escape($apath); $apath=~s/\W/\_/gs; %oldessays=&Apache::lonnet::dump('nohist_essay_'.$apath,$adom,$aname);