svn: /web/php-bugs/trunk/ local_config.php.sample www/bug.php

From: Date: Thu, 23 Jun 2011 14:42:15 +0000
Subject: svn: /web/php-bugs/trunk/ local_config.php.sample www/bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11264@lists.php.net to get a copy of this message
felipe Thu, 23 Jun 2011 14:42:15 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312403 Log: - Added missing $site_data['doc_email'] in local_config - Fix undefined index warning of cve_id Changed paths: U web/php-bugs/trunk/local_config.php.sample U web/php-bugs/trunk/www/bug.php Modified: web/php-bugs/trunk/local_config.php.sample =================================================================== --- web/php-bugs/trunk/local_config.php.sample 2011-06-23 14:12:50 UTC (rev 312402) +++ web/php-bugs/trunk/local_config.php.sample 2011-06-23 14:42:15 UTC (rev 312403) @@ -8,6 +8,7 @@ 'url' => 'bugs.php.net', 'basedir' => '/bugs', 'email' => 'php-bugs@lists.php.net', + 'doc_email' => 'doc-bugs.lists.php.net', 'security_email' => 'security@php.net', 'db' => 'phpbugsdb', 'db_extension' => 'mysqli', Modified: web/php-bugs/trunk/www/bug.php =================================================================== --- web/php-bugs/trunk/www/bug.php 2011-06-23 14:12:50 UTC (rev 312402) +++ web/php-bugs/trunk/www/bug.php 2011-06-23 14:42:15 UTC (rev 312403) @@ -382,13 +382,12 @@ $errors[] = "Please do not SPAM our bug system."; } - if ($is_security_developer) { - // Just trusted dev can set CVE-ID - if (!empty($_POST['in']['cve_id'])) { - // Remove the CVE- prefix - $_POST['in']['cve_id'] = preg_replace('/^\s*CVE-/i', '', $_POST['in']['cve_id']); - } - } else { + // Just trusted dev can set CVE-ID + if ($is_security_developer && !empty($_POST['in']['cve_id'])) { + // Remove the CVE- prefix + $_POST['in']['cve_id'] = preg_replace('/^\s*CVE-/i', '', $_POST['in']['cve_id']); + } + if (empty($_POST['in']['cve_id'])) { $_POST['in']['cve_id'] = $bug['cve_id']; }

« previous php.webmaster (#11264) next »