[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 28 Jan 2005 09:30:40 -0000


albertel		Fri Jan 28 04:30:40 2005 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - public homework access was broken because we switched homework forms to 'multipart/form-data' but public acces wasn't using the get_posted_cgi to parse the form data
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.59 loncom/auth/lonacc.pm:1.60
--- loncom/auth/lonacc.pm:1.59	Mon Jan 24 19:28:00 2005
+++ loncom/auth/lonacc.pm	Fri Jan 28 04:30:40 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.59 2005/01/25 00:28:00 albertel Exp $
+# $Id: lonacc.pm,v 1.60 2005/01/28 09:30:40 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -166,9 +166,7 @@
     if ($requrl=~m|^/public/|
 	|| (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) {
         &Apache::lonnet::logthis('Granting public access: '.$requrl);
-	my $buffer;
-	$r->read($buffer,$r->header_in('Content-length'),0);
-	&Apache::loncommon::get_unprocessed_cgi($buffer);
+	&Apache::loncommon::get_posted_cgi($r);
 	$ENV{'user.name'}='public';
         $ENV{'user.domain'}='public';
         $ENV{'request.state'} = "published";