--- loncom/lonnet/perl/lonnet.pm 2003/11/12 21:37:33 1.450 +++ loncom/lonnet/perl/lonnet.pm 2003/12/02 19:35:26 1.451 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.450 2003/11/12 21:37:33 matthew Exp $ +# $Id: lonnet.pm,v 1.451 2003/12/02 19:35:26 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1153,8 +1153,8 @@ sub ssi_body { my ($filelink,%form)=@_; my $output=($filelink=~/^http\:/?&externalssi($filelink): &ssi($filelink,%form)); - $output=~s/^.*\]*\>//si; - $output=~s/\<\/body\s*\>.*$//si; + $output=~s/^.*?\]*\>//si; + $output=~s/(.*)\<\/body\s*\>.*?$/$1/si; $output=~ s/\/\/ BEGIN LON\-CAPA Internal.+\/\/ END LON\-CAPA Internal\s//gs; return $output;