--- loncom/homework/drawimage.pm 2004/09/09 07:34:48 1.8 +++ loncom/homework/drawimage.pm 2006/05/30 12:45:36 1.9 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # programatic image drawing # -# $Id: drawimage.pm,v 1.8 2004/09/09 07:34:48 albertel Exp $ +# $Id: drawimage.pm,v 1.9 2006/05/30 12:45:36 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -29,6 +29,9 @@ package Apache::drawimage; use strict; use Apache::loncommon; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + my %args; my $cgi_id; @@ -96,7 +99,7 @@ sub end_text { my $color = &Apache::lonxml::get_param('color',$parstack,$safeeval); my $direction = &Apache::lonxml::get_param('direction',$parstack,$safeeval); my $text = &Apache::lonxml::endredirection(); - $text = &Apache::lonnet::escape($text); + $text = &escape($text); $args{"cgi.$cgi_id.OBJTYPE"}.='LABEL:'; my $i=$args{"cgi.$cgi_id.OBJCOUNT"}++; $args{"cgi.$cgi_id.OBJ$i"}=join(':',($x,$y,$text,$font,$color,$direction)); @@ -280,7 +283,7 @@ sub end_image { my $i=$args{"cgi.$cgi_id.OBJCOUNT"}++; $args{"cgi.$cgi_id.OBJTYPE"}.='IMAGE:'; $args{"cgi.$cgi_id.OBJ$i"} = - join(':',($x,$y,&Apache::lonnet::escape($bgimg),$transparent, + join(':',($x,$y,&escape($bgimg),$transparent, $clipx,$clipy,$scaledwidth,$scaledheight,$clipwidth,$clipheight)); } return $result; 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.