Re: cvs: pearweb /public_html/bugs report.php /public_html/bugs/include functions.inc

From: Date: Thu, 23 Feb 2006 03:24:42 +0000
Subject: Re: cvs: pearweb /public_html/bugs report.php /public_html/bugs/include functions.inc
References: 1  Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-38525@lists.php.net to get a copy of this message
-function get_package_mail($package_name, $bug_id) +function get_package_mail($package_name, $bug_id=false) { .....
-    return array(implode(', ', $to), $bugEmail, implode(', ', $bcc));
+    if ($bug_id) {
+        $bcc = $dbh->getCol('SELECT email FROM bugdb_subscribe WHERE bug_id=' . $bug_id);
 
probably worth casting (int) it here... -> just incase someone forgot to clean the input before sending to get_package_mail();
+        $bcc = array_diff($bcc, $to);
+        $bcc = array_unique($bcc);
+        return array(implode(', ', $to), $bugEmail, implode(', ', $bcc));
+    } else {
+        return array(implode(', ', $to), $bugEmail);
+    }
} /**


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