[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

raeburn raeburn at source.lon-capa.org
Wed Nov 21 18:13:31 EST 2012


raeburn		Wed Nov 21 23:13:31 2012 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - Bug 6629.
  - Reverse one change in rev. 1.511, so Math::Complex::ln is available in
    safe space for perl 5.10.0 and older.   
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.532 loncom/xml/lonxml.pm:1.533
--- loncom/xml/lonxml.pm:1.532	Thu Jul  5 19:24:02 2012
+++ loncom/xml/lonxml.pm	Wed Nov 21 23:13:30 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.532 2012/07/05 19:24:02 raeburn Exp $
+# $Id: lonxml.pm,v 1.533 2012/11/21 23:13:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -649,9 +649,9 @@
 
 sub init_safespace {
   my ($target,$safeeval,$safehole,$safeinit) = @_;
-  $safeeval->reval('use Math::Complex;');
   $safeeval->reval('use LaTeX::Table;');
   $safeeval->deny_only(':dangerous');
+  $safeeval->reval('use Math::Complex;');
   $safeeval->permit_only(":default");
   $safeeval->permit("entereval");
   $safeeval->permit(":base_math");




More information about the LON-CAPA-cvs mailing list