--- loncom/lonnet/perl/lonnet.pm 2008/03/12 02:46:27 1.949 +++ loncom/lonnet/perl/lonnet.pm 2008/03/24 04:55:54 1.951 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.949 2008/03/12 02:46:27 raeburn Exp $ +# $Id: lonnet.pm,v 1.951 2008/03/24 04:55:54 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1705,19 +1705,13 @@ sub absolute_url { # form Hash that describes how the rendering should be done # and other things. # Returns: -# Scalar context: The content of the reply. -# Array context: 2 element list of the content and the full response variable. +# Scalar context: The content of the response. +# Array context: 2 element list of the content and the full response object. # -# Returns: -# The content of the response. sub ssi { my ($fn,%form)=@_; - my $count = scalar(@_); - - my $ua=new LWP::UserAgent; - my $request; $form{'no_update_last_known'}=1; @@ -1731,7 +1725,6 @@ sub ssi { $request->header(Cookie => $ENV{'HTTP_COOKIE'}); my $response=$ua->request($request); - my $status = $response->code; if (wantarray) { return ($response->content, $response); @@ -3969,6 +3962,7 @@ sub tmpget { my %returnhash; foreach my $item (split(/\&/,$rep)) { my ($key,$value)=split(/=/,$item); + next if ($key =~ /^error: 2 /); $returnhash{&unescape($key)}=&thaw_unescape($value); } return %returnhash;