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

raeburn raeburn@source.lon-capa.org
Mon, 16 Nov 2009 18:00:07 -0000


raeburn		Mon Nov 16 18:00:07 2009 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  - Can't return outside a subroutine.
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.144 loncom/interface/printout.pl:1.145
--- loncom/interface/printout.pl:1.144	Sun Sep 27 02:47:11 2009
+++ loncom/interface/printout.pl	Mon Nov 16 18:00:07 2009
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.144 2009/09/27 02:47:11 raeburn Exp $
+# $Id: printout.pl,v 1.145 2009/11/16 18:00:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -171,7 +171,7 @@
 </body>
 </html>
 END
-    return;
+    exit;
 }
 
 my %perlvar=%{&LONCAPA::Configuration::read_conf('loncapa.conf')};