--- loncom/publisher/lonretrieve.pm 2001/12/17 00:57:59 1.16 +++ loncom/publisher/lonretrieve.pm 2002/05/29 18:25:17 1.17 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to retrieve an old version of a file # -# $Id: lonretrieve.pm,v 1.16 2001/12/17 00:57:59 harris41 Exp $ +# $Id: lonretrieve.pm,v 1.17 2002/05/29 18:25:17 stredwic Exp $ # # Copyright Michigan State University Board of Trustees # @@ -176,17 +176,8 @@ sub handler { # Get query string for limited number of parameters - foreach (split(/&/,$ENV{'QUERY_STRING'})) { - my ($name, $value) = split(/=/,$_); - $value =~ tr/+/ /; - $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; - if ($name eq 'filename') { - unless ($ENV{'form.'.$name}) { - $ENV{'form.'.$name}=$value; - } - } - } - + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['filename'); if ($ENV{'form.filename'}) { $fn=$ENV{'form.filename'};