--- loncom/xml/run.pm 2004/02/26 23:39:04 1.45 +++ loncom/xml/run.pm 2004/03/31 05:24:00 1.46 @@ -1,6 +1,6 @@ package Apache::run; # -# $Id: run.pm,v 1.45 2004/02/26 23:39:04 albertel Exp $ +# $Id: run.pm,v 1.46 2004/03/31 05:24:00 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -80,12 +80,12 @@ sub evaluate { $Apache::lonnet::perlvar{'lonScriptTimeout'}.' seconds'; } &Apache::lonxml::error('substitution on
'. - &HTML::Entities::encode($expression). + &HTML::Entities::encode($expression,'<>&"'). 'with
'. - &HTML::Entities::encode($decls). + &HTML::Entities::encode($decls,'<>&"'). 'caused
'. - &HTML::Entities::encode($error).' '. - &HTML::Entities::encode($innererror). + &HTML::Entities::encode($error,'<>&"').' '. + &HTML::Entities::encode($innererror,'<>&"'). ''); } return $result @@ -113,10 +113,10 @@ sub run { $error = 'Code ran too long. It ran for more than '. $Apache::lonnet::perlvar{'lonScriptTimeout'}.' seconds'; } - my $errormsg='
'.&HTML::Entities::encode($error).' '. - &HTML::Entities::encode($innererror). + my $errormsg=''.&HTML::Entities::encode($error,'<>&"').' '. + &HTML::Entities::encode($innererror,'<>&"'). 'occured while running'; - $code=&HTML::Entities::encode($code); + $code=&HTML::Entities::encode($code,'<>&"'); if ($innererror=~/line (\d+)/) { my $linenumber=$1; my @code=split("\n",$code); @@ -153,7 +153,7 @@ sub dump { $symname.'{$_} } sort keys %'. $symname.')').")" } - if ($line ne '') {$dump.=&HTML::Entities::encode($line)."
";} + if ($line ne '') {$dump.=&HTML::Entities::encode($line,'<>&"')."
";} } } $dump.='';