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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 06 Oct 2006 14:28:45 -0000


albertel		Fri Oct  6 10:28:45 2006 EDT

  Modified files:              
    /loncom/auth	lonauth.pm 
  Log:
  - if no form sent don't ISE
  
  
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.83 loncom/auth/lonauth.pm:1.84
--- loncom/auth/lonauth.pm:1.83	Tue Sep 19 17:36:24 2006
+++ loncom/auth/lonauth.pm	Fri Oct  6 10:28:45 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonauth.pm,v 1.83 2006/09/19 21:36:24 albertel Exp $
+# $Id: lonauth.pm,v 1.84 2006/10/06 14:28:45 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -344,7 +344,9 @@
 
 
     my $buffer;
-    $r->read($buffer,$r->header_in('Content-length'),0);
+    if ($r->header_in('Content-length') > 0) {
+	$r->read($buffer,$r->header_in('Content-length'),0);
+    }
     my @pairs=split(/&/,$buffer);
     my $pair; my $name; my $value;
     undef %FORM;