[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 05 Jun 2002 20:40:10 -0000
www Wed Jun 5 16:40:10 2002 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
New &EXT functionality to access query string
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.235 loncom/lonnet/perl/lonnet.pm:1.236
--- loncom/lonnet/perl/lonnet.pm:1.235 Wed May 29 10:10:28 2002
+++ loncom/lonnet/perl/lonnet.pm Wed Jun 5 16:40:10 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.235 2002/05/29 14:10:28 www Exp $
+# $Id: lonnet.pm,v 1.236 2002/06/05 20:40:10 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2278,7 +2278,11 @@
my %reply=&get($space,[$item]);
return $reply{$item};
}
- } elsif ($realm eq 'request') {
+ } elsif ($realm eq 'query') {
+# ---------------------------------------------- pull stuff out of query string
+ &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},[$space]);
+ return $ENV{'form.'.$space};
+ } elsif ($realm eq 'request') {
# ------------------------------------------------------------- request.browser
if ($space eq 'browser') {
return $ENV{'browser.'.$qualifier};