Commit:    0f4a8cdd72b0fabce293a9206db6b5710cbc9d76
Author:    Alexander Moskaliov <ir...@php.net>         Fri, 8 Jun 2012 17:36:47 
+0400
Parents:   f63ee4060239525713ba87016908d06fa75d903d
Branches:  master

Link:       
http://git.php.net/?p=karma.git;a=commitdiff;h=0f4a8cdd72b0fabce293a9206db6b5710cbc9d76

Log:
fix char's case problem

Changed paths:
  M  lib/Git/PostReceiveHook.php


Diff:
diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php
index f43a160..336c4e9 100644
--- a/lib/Git/PostReceiveHook.php
+++ b/lib/Git/PostReceiveHook.php
@@ -486,7 +486,7 @@ class PostReceiveHook extends ReceiveHook
         $bugs = [];
         if 
(preg_match_all('/(?:(pecl|pear|php)\s*)?(?:bug|#)[\s#:]*([0-9]+)/iuX', $log, 
$matchedBugs, PREG_SET_ORDER)) {
             foreach($matchedBugs as $bug) {
-                $bugs[$bug[2]] = $bugUrlPrefixes[$bug[1]] . $bug[2];
+                $bugs[$bug[2]] = $bugUrlPrefixes[strtolower($bug[1])] . 
$bug[2];
             }
         }
         return $bugs;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to