cvs: php4 /pear/File Passwd.php
| From: | Martin Jansen | Date: | Fri, 23 Aug 2002 08:32:48 +0000 |
| Subject: | cvs: php4 /pear/File Passwd.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5892@lists.php.net to get a copy of this message | ||
mj Fri Aug 23 04:32:48 2002 EDT
Modified files:
/php4/pear/File Passwd.php
Log:
* Suppress warning when having empty lines in password file.
# Patch by: Bjoern Frantzen
Index: php4/pear/File/Passwd.php
diff -u php4/pear/File/Passwd.php:1.11 php4/pear/File/Passwd.php:1.12
--- php4/pear/File/Passwd.php:1.11 Mon Jul 8 14:11:18 2002
+++ php4/pear/File/Passwd.php Fri Aug 23 04:32:47 2002
@@ -16,7 +16,7 @@
// | Author: Rasmus Lerdorf <rasmus@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Passwd.php,v 1.11 2002/07/08 18:11:18 mj Exp $
+// $Id: Passwd.php,v 1.12 2002/08/23 08:32:47 mj Exp $
//
// Manipulate standard UNIX passwd,.htpasswd and CVS pserver passwd files
@@ -100,6 +100,9 @@
}
while(!feof($fp)) {
$line = fgets($fp, 128);
+ if (!strlen($line)) {
+ continue;
+ }
list($user, $pass, $cvsuser) = explode(':', $line);
if(strlen($user)) {
$this->users[$user] = trim($pass);