svn: SVNROOT/ commit-bugs.php
[email protected] (Gwynne Raskind) Thu, 23 Jul 2009 15:55:12 +0000
| Newsgroups | php.cvs,svn.migration |
|---|---|
| Message-ID | <[email protected]> |
--56d66a3a4532fe9b24edd36eab8b0c4bca2c59e9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
gwynne Thu, 23 Jul 2009 15:55:12 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=284653
Log:
fix case-sensitivity problem in bug matcher
Changed paths:
U SVNROOT/commit-bugs.php
Modified: SVNROOT/commit-bugs.php
===================================================================
--- SVNROOT/commit-bugs.php 2009-07-23 15:48:04 UTC (rev 284652)
+++ SVNROOT/commit-bugs.php 2009-07-23 15:55:12 UTC (rev 284653)
@@ -25,7 +25,7 @@
// -----------------------------------------------------------------------------------------------------------------------------
// Pick the default bug project out the of the path in the first changed dir
-switch (substr($commit_info['dirs_changed'][0], 0, 4)) {
+switch (strtolower(substr($commit_info['dirs_changed'][0], 0, 4))) {
case 'pear':
$bug_project_default = 'pear';
break;
@@ -42,7 +42,7 @@
$bug_list = array();
foreach ($matched_bugs as $matched_bug) {
$bug = array();
- $bug['project'] = $matched_bug[1] === "" ? $bug_project_default : $matched_bug[1];
+ $bug['project'] = $matched_bug[1] === "" ? $bug_project_default : strtolower($matched_bug[1]);
$bug['number'] = intval($matched_bug[2]);
$bugid = $bug['project'] . $bug['number'];
$bug['url_prefix'] = isset($bug_url_prefixes[$bug['project']]) ? $bug_url_prefixes[$bug['project']] : $bug_url_prefixes[''];
--56d66a3a4532fe9b24edd36eab8b0c4bca2c59e9--