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

foxr foxr@source.lon-capa.org
Mon, 26 Jul 2010 09:58:53 -0000


foxr		Mon Jul 26 09:58:53 2010 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  BZ6331 - Import LaTeX::Table into safe space before clamping down permissions.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.510 loncom/xml/lonxml.pm:1.511
--- loncom/xml/lonxml.pm:1.510	Sun Jun  6 02:40:40 2010
+++ loncom/xml/lonxml.pm	Mon Jul 26 09:58:53 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.510 2010/06/06 02:40:40 raeburn Exp $
+# $Id: lonxml.pm,v 1.511 2010/07/26 09:58:53 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -642,8 +642,9 @@
 
 sub init_safespace {
   my ($target,$safeeval,$safehole,$safeinit) = @_;
-  $safeeval->deny_only(':dangerous');
   $safeeval->reval('use Math::Complex;');
+  $safeeval->reval('use LaTeX::Table;');
+  $safeeval->deny_only(':dangerous');
   $safeeval->permit_only(":default");
   $safeeval->permit("entereval");
   $safeeval->permit(":base_math");