cvs: SVNROOT / .cvsignore commit-email.php

[email protected] ("Gwynne Raskind") Sat, 20 Dec 2008 19:12:48 -0000
Newsgroups svn.migration
Message-ID <cvsgwynne1229800368@cvsserver>
gwynne		Sat Dec 20 19:12:48 2008 UTC

  Modified files:              
    /SVNROOT	.cvsignore commit-email.php 
  Log:
  add users file, fix newline issue in commit emails
  
http://cvs.php.net/viewvc.cgi/SVNROOT/.cvsignore?r1=1.1&r2=1.2&diff_format=u
Index: SVNROOT/.cvsignore
diff -u SVNROOT/.cvsignore:1.1 SVNROOT/.cvsignore:1.2
--- SVNROOT/.cvsignore:1.1	Sat Dec 20 18:55:39 2008
+++ SVNROOT/.cvsignore	Sat Dec 20 19:12:48 2008
@@ -1 +1,3 @@
 users.db
+passwd.db
+
http://cvs.php.net/viewvc.cgi/SVNROOT/commit-email.php?r1=1.7&r2=1.8&diff_format=u
Index: SVNROOT/commit-email.php
diff -u SVNROOT/commit-email.php:1.7 SVNROOT/commit-email.php:1.8
--- SVNROOT/commit-email.php:1.7	Sat Dec 20 19:08:03 2008
+++ SVNROOT/commit-email.php	Sat Dec 20 19:12:48 2008
@@ -7,7 +7,7 @@
 
 // -----------------------------------------------------------------------------------------------------------------------------
 // Constants
-$version = substr('$Revision: 1.7 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.8 $', strlen('$Revision: '), -2);
 $smtp_server = '127.0.0.1';
 $commit_email_list = array(
     // FastCGI ISAPI
@@ -107,7 +107,7 @@
 // Various repositories can play with this to read from their equivelant of the old cvsusers folder, or whatever else they like
 $usersDB = file(dirname(__FILE__) . '/users.db');
 foreach ($usersDB as $userline) {
-    list ($username, $fullname, $email) = explode(":", $userline);
+    list ($username, $fullname, $email) = explode(":", trim($userline));
     if ($username == $commit_user) {
         $from = "\"{$fullname}\" <$email>";
         break;