svn: /web/php-bugs/trunk/include/ functions.php trusted-devs.php

From: Date: Sat, 26 Feb 2011 20:10:13 +0000
Subject: svn: /web/php-bugs/trunk/include/ functions.php trusted-devs.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10566@lists.php.net to get a copy of this message
felipe Sat, 26 Feb 2011 20:10:13 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308712 Log: - Added security distro people to receive mail about security related bugs Changed paths: U web/php-bugs/trunk/include/functions.php U web/php-bugs/trunk/include/trusted-devs.php Modified: web/php-bugs/trunk/include/functions.php =================================================================== --- web/php-bugs/trunk/include/functions.php 2011-02-26 19:36:47 UTC (rev 308711) +++ web/php-bugs/trunk/include/functions.php 2011-02-26 20:10:13 UTC (rev 308712) @@ -1252,7 +1252,7 @@ */ function get_package_mail($package_name, $bug_id = false, $bug_type = 'Bug') { - global $dbh, $bugEmail, $docBugEmail, $secBugEmail; + global $dbh, $bugEmail, $docBugEmail, $secBugEmail, $security_distro_people; $to = array(); @@ -1296,6 +1296,11 @@ } } $bcc = $dbh->prepare("SELECT email FROM bugdb_subscribe WHERE bug_id=?")->execute(array($bug_id))->fetchCol(); + + // Add the security distro people + if ($bug_type == 'Security') { + $bcc = array_merge($bcc, $security_distro_people); + } $bcc = array_diff($bcc, $to); $bcc = array_unique($bcc); return array(implode(', ', $to), $bugEmail, implode(', ', $bcc)); Modified: web/php-bugs/trunk/include/trusted-devs.php =================================================================== --- web/php-bugs/trunk/include/trusted-devs.php 2011-02-26 19:36:47 UTC (rev 308711) +++ web/php-bugs/trunk/include/trusted-devs.php 2011-02-26 20:10:13 UTC (rev 308712) @@ -15,6 +15,13 @@ 'pajoye', ); +// Distro people (security related) +$security_distro_people = array( + 'jorton' => 'jorton@php.net', + 'geissert' => 'geissert@php.net', + 'oden' => 'oden@php.net', +); + $security_developers = array( 'felipe', 'rasmus', @@ -35,8 +42,7 @@ 'andi', 'scottmac', 'dmitry', - // Distro people - 'jorton', - 'geissert', - 'oden', -); \ No newline at end of file +); + +$security_developers = array_merge($security_developers, array_keys($security_distro_people)); +

« previous php.webmaster (#10566) next »