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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 08 Nov 2005 18:59:03 -0000


albertel		Tue Nov  8 13:59:03 2005 EDT

  Modified files:              
    /loncom/xml	run.pm 
  Log:
  - math::complex apparently creates a var name ^WARNING_BITS where ^W is the control character \027. hiding it
  
  
Index: loncom/xml/run.pm
diff -u loncom/xml/run.pm:1.52 loncom/xml/run.pm:1.53
--- loncom/xml/run.pm:1.52	Tue Oct  4 12:30:23 2005
+++ loncom/xml/run.pm	Tue Nov  8 13:59:03 2005
@@ -1,6 +1,6 @@
 package Apache::run;
 #
-# $Id: run.pm,v 1.52 2005/10/04 16:30:23 albertel Exp $
+# $Id: run.pm,v 1.53 2005/11/08 18:59:03 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -157,7 +157,7 @@
     my ($target,$safeeval)=@_;
     my $dump='';
     foreach my $symname (sort keys %{$safeeval->varglob('main::')}) {
-	if (($symname!~/^\_/) && ($symname!~/\:$/)) {
+	if (($symname!~/\027/) && ($symname!~/^\_/) && ($symname!~/\:$/)) {
 	    my $line;
 	    if ($safeeval->reval('defined($'.$symname.')')) {
 		if ($symname =~ /^\w/) {
@@ -172,8 +172,8 @@
 		$line.='%'.$symname.'=(';
 		$line.=$safeeval->reval('join(",",map { $_."=>".$'.
 					$symname.'{$_} } sort keys %'.
-					$symname.')').")"."\n"
-				    }
+					$symname.')').")"."\n";
+	    }
 	    if ($line ne '') {
 		$line=&HTML::Entities::encode($line,'<>&"');
 		$line=~s|\n|<br />|g;