--- loncom/publisher/lonpublisher.pm 2003/08/21 17:01:07 1.130 +++ loncom/publisher/lonpublisher.pm 2003/09/16 21:30:28 1.132 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.130 2003/08/21 17:01:07 albertel Exp $ +# $Id: lonpublisher.pm,v 1.132 2003/09/16 21:30:28 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -719,7 +719,7 @@ sub fix_ids_and_indices { if (!$endtag) { if ($token->[4]=~m:/>$:) { $endtag=' /'; }; } $outstring.='<'.$tag.$newparmstring.$endtag.'>'; if ($lctag eq 'm' || $lctag eq 'script' - || $lctag eq 'display') { + || $lctag eq 'display' || $lctag eq 'tex') { $outstring.=&get_all_text_unbalanced('/'.$lctag,\@parser); } } elsif ($token->[0] eq 'E') { @@ -1492,6 +1492,8 @@ sub phasetwo { sub batchpublish { my ($r,$srcfile,$targetfile)=@_; + #publication pollutes %ENV with form.* values + my %oldENV=%ENV; $srcfile=~s/\/+/\//g; $targetfile=~s/\/+/\//g; my $thisdisfn=$srcfile; @@ -1527,6 +1529,7 @@ sub batchpublish { &phasetwo($r,$srcfile,$targetfile,$thisembstyle,$thisdistarget,1); $r->print('

'); } + %ENV=%oldENV; return ''; }