--- loncom/homework/grades.pm 2004/03/19 03:47:09 1.181 +++ loncom/homework/grades.pm 2004/05/07 15:09:13 1.196 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.181 2004/03/19 03:47:09 albertel Exp $ +# $Id: grades.pm,v 1.196 2004/05/07 15:09:13 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -511,7 +511,7 @@ sub verifyreceipt { my $request = shift; my $courseid = $ENV{'request.course.id'}; - my $receipt = unpack("%32C*",$Apache::lonnet::perlvar{'lonHostID'}).'-'. + my $receipt = &Apache::lonnet::recprefix($courseid).'-'. $ENV{'form.receipt'}; $receipt =~ s/[^\-\d]//g; my $url = $ENV{'form.url'}; @@ -3108,7 +3108,7 @@ sub displayPage { '