[LON-CAPA-cvs] cvs: loncom(version_1_1_X) /interface printout.pl

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 12 Feb 2004 22:50:35 -0000


albertel		Thu Feb 12 17:50:35 2004 EDT

  Modified files:              (Branch: version_1_1_X)
    /loncom/interface	printout.pl 
  Log:
  - backport 1.46
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.40 loncom/interface/printout.pl:1.40.2.1
--- loncom/interface/printout.pl:1.40	Mon Oct 20 14:34:20 2003
+++ loncom/interface/printout.pl	Thu Feb 12 17:50:35 2004
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.40 2003/10/20 18:34:20 sakharuk Exp $
+# $Id: printout.pl,v 1.40.2.1 2004/02/12 22:50:35 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -32,6 +32,7 @@
 use IO::File;
 use Image::Magick;
 
+my %origENV=%ENV;
 if (! &LONCAPA::loncgi::check_cookie_and_load_env()) {
     print <<END;
 Content-type: text/html
@@ -272,6 +273,8 @@
   } else {
       print "LaTeX file $texfile was not created successfully";
   }
+  #got what we needed reset ENV in case it is to big for system
+  %ENV=%origENV;