--- loncom/interface/lonmsg.pm 2002/04/23 21:06:07 1.31 +++ loncom/interface/lonmsg.pm 2002/05/07 15:24:34 1.32 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.31 2002/04/23 21:06:07 matthew Exp $ +# $Id: lonmsg.pm,v 1.32 2002/05/07 15:24:34 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -521,21 +521,9 @@ sub handler { return OK if $r->header_only; # --------------------------- 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 'display') || ($name eq 'replyto') || - ($name eq 'forward') || ($name eq 'markread') || - ($name eq 'markdel') || ($name eq 'markunread') || - ($name eq 'sendreply') || ($name eq 'compose') || - ($name eq 'sendmail') || ($name eq 'critical')) { - unless ($ENV{'form.'.$name}) { - $ENV{'form.'.$name}=$value; - } - } - } + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['display','replyto','forward','markread','markdel','markunread', + 'sendreply','compose','sendmail','critical']); # --------------------------------------------------------------- Render Output