[LON-CAPA-cvs] cvs: loncom /xml run.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 19 Jul 2004 16:53:46 -0000
albertel Mon Jul 19 12:53:46 2004 EDT
Modified files:
/loncom/xml run.pm
Log:
- turn off the reuire is run::evaluate since they are on by default now
Index: loncom/xml/run.pm
diff -u loncom/xml/run.pm:1.47 loncom/xml/run.pm:1.48
--- loncom/xml/run.pm:1.47 Tue Jul 13 15:12:46 2004
+++ loncom/xml/run.pm Mon Jul 19 12:53:46 2004
@@ -1,6 +1,6 @@
package Apache::run;
#
-# $Id: run.pm,v 1.47 2004/07/13 19:12:46 albertel Exp $
+# $Id: run.pm,v 1.48 2004/07/19 16:53:46 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -82,7 +82,6 @@
die("timeout");
};
my $innererror;
- $safeeval->permit("require");
eval {
alarm($Apache::lonnet::perlvar{'lonScriptTimeout'});
$safeeval->reval('{'.$decls.';$_=<<\'EXPRESSION\';'."\n".$expression.
@@ -90,7 +89,6 @@
$innererror=$@;
alarm(0);
};
- $safeeval->deny("require");
my $error=$@;
if ($error eq '' && $innererror eq '' && !$Apache::run::timeout) {
$result = $safeeval->reval('return $_;');