[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Tue, 07 May 2002 18:07:47 -0000
matthew Tue May 7 14:07:47 2002 EDT
Modified files:
/loncom/publisher lonpublisher.pm
Log:
Modified to use loncommon::get_unprocessed_cgi(). BUG 90.
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.79 loncom/publisher/lonpublisher.pm:1.80
--- loncom/publisher/lonpublisher.pm:1.79 Wed Apr 17 14:32:35 2002
+++ loncom/publisher/lonpublisher.pm Tue May 7 14:07:46 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Publication Handler
#
-# $Id: lonpublisher.pm,v 1.79 2002/04/17 18:32:35 matthew Exp $
+# $Id: lonpublisher.pm,v 1.80 2002/05/07 18:07:46 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -990,17 +990,8 @@
# 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']);
# -------------------------------------------------------------- Check filename