cvs: SVNROOT / commit-email.php
[email protected] ("Gwynne Raskind") Thu, 09 Jul 2009 01:10:47 -0000
| Newsgroups | svn.migration |
|---|---|
| Message-ID | <cvsgwynne1247101847@cvsserver> |
gwynne Thu Jul 9 01:10:47 2009 UTC
Modified files:
/SVNROOT commit-email.php
Log:
extremely large commit e-mails are now cut off
http://cvs.php.net/viewvc.cgi/SVNROOT/commit-email.php?r1=1.16&r2=1.17&diff_format=u
Index: SVNROOT/commit-email.php
diff -u SVNROOT/commit-email.php:1.16 SVNROOT/commit-email.php:1.17
--- SVNROOT/commit-email.php:1.16 Mon Jul 6 21:40:30 2009
+++ SVNROOT/commit-email.php Thu Jul 9 01:10:47 2009
@@ -7,7 +7,7 @@
// -----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.16 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.17 $', strlen('$Revision: '), -2);
$smtp_server = '127.0.0.1';
$commit_email_list = array(
// FastCGI ISAPI
@@ -163,7 +163,9 @@
wordwrap($commit_log, 80, "\n") . "\n" .
"\n";
-if (strlen($diffs) >= 8000) {
+if (strlen($diffs) >= (96 * 1024)) {
+ $msg_body .= "<diffs exceeded maximum size>\n";
+} else if (strlen($diffs) >= 8192) {
$boundary = $commit_user. $commit_date;
$msg_headers .= "MIME-Version: 1.0\n" .
"Content-Type: multipart/mixed; boundary=\"{$boundary}\"\n";