--- loncom/auth/lonauth.pm 2006/09/19 21:36:24 1.83 +++ loncom/auth/lonauth.pm 2006/10/06 14:28:45 1.84 @@ -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 @@ ENDFAILED 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;