cvs: pear /Auth Auth.php

From: Date: Wed, 09 Jan 2002 21:31:15 +0000
Subject: cvs: pear /Auth Auth.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1900@lists.php.net to get a copy of this message
mj Wed Jan 9 16:31:15 2002 EDT Modified files: /pear/Auth Auth.php Log: * Also check if username and password variables exist. (Patch by LIMBOURG Arnaud <arnaud.limbourg@cegetel.fr>) Index: pear/Auth/Auth.php diff -u pear/Auth/Auth.php:1.26 pear/Auth/Auth.php:1.27 --- pear/Auth/Auth.php:1.26 Wed Jan 9 16:26:04 2002 +++ pear/Auth/Auth.php Wed Jan 9 16:31:15 2002 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.26 2002/01/09 21:26:04 mj Exp $ +// $Id: Auth.php,v 1.27 2002/01/09 21:31:15 mj Exp $ // require_once "PEAR.php"; @@ -132,7 +132,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.26 $ + * @version $Revision: 1.27 $ */ define("AUTH_IDLED", -1); @@ -275,11 +275,11 @@ { $post = &$this->_importGlobalVariable("post"); - if ($post['username'] != "") { + if (isset($post['username']) && $post['username'] != "") { $this->username = $post['username']; } - if ($post['password'] != "") { + if (isset($post['password']) && $post['password'] != "") { $this->password = $post['password']; } }

« previous php.pear.cvs (#1900) next »