--- loncom/homework/essayresponse.pm 2006/10/23 10:00:29 1.79 +++ loncom/homework/essayresponse.pm 2006/12/05 02:55:54 1.80 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # essay (ungraded) style responses # -# $Id: essayresponse.pm,v 1.79 2006/10/23 10:00:29 foxr Exp $ +# $Id: essayresponse.pm,v 1.80 2006/12/05 02:55:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -31,7 +31,6 @@ use strict; use Apache::lonxml(); use Apache::lonnet; use Apache::lonlocal; -use lib '/home/httpd/lib/perl/'; use LONCAPA; @@ -153,7 +152,7 @@ sub end_essayresponse { my $essayurl= &Apache::lonnet::declutter($ENV{'REQUEST_URI'}); my ($adom,$aname,$apath)= - ($essayurl=~/^(\w+)\/(\w+)\/(.*)$/); + ($essayurl=~/^($LONCAPA::domain_re)\/($LONCAPA::username_re)\/(.*)$/); $apath=&escape($apath); $apath=~s/\W/\_/gs; &Apache::lonnet::put('nohist_essay_'.$apath,