[LON-CAPA-cvs] cvs: modules /gerd/maxima lonmaxima.pm

www lon-capa-cvs@mail.lon-capa.org
Wed, 15 Mar 2006 20:44:56 -0000


www		Wed Mar 15 15:44:56 2006 EDT

  Modified files:              
    /modules/gerd/maxima	lonmaxima.pm 
  Log:
  Ignore linebreaks
  
  
Index: modules/gerd/maxima/lonmaxima.pm
diff -u modules/gerd/maxima/lonmaxima.pm:1.1 modules/gerd/maxima/lonmaxima.pm:1.2
--- modules/gerd/maxima/lonmaxima.pm:1.1	Sat Mar 11 11:28:03 2006
+++ modules/gerd/maxima/lonmaxima.pm	Wed Mar 15 15:44:54 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Interface routines to MAXIMA CAS
 #
-# $Id: lonmaxima.pm,v 1.1 2006/03/11 16:28:03 www Exp $
+# $Id: lonmaxima.pm,v 1.2 2006/03/15 20:44:54 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 sub blacklisted {
     my ($cmd)=@_;
     foreach my $forbidden ('save','load','plot','lisp','includ','compil','file','batch','stringout','translat','stout','stin','block','system') {
-	if ($cmd=~/$forbidden/) { return 1; }
+	if ($cmd=~/$forbidden/s) { return 1; }
     } 
     return 0;
 }