@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make named lookup of users case insensitive

Summary: Fixes T5302. Allow the name `@aLiNCoLN` to identify user `@alincoln`.

Test Plan: Queried users with mixed case names.

Reviewers: btrahan, spicyj, chad

Reviewed By: spicyj

Subscribers: epriestley

Maniphest Tasks: T5302

Differential Revision: https://secure.phabricator.com/D9451

+4 -2
+4 -2
src/applications/people/phid/PhabricatorPeoplePHIDTypeUser.php
··· 68 68 $id_map = array(); 69 69 foreach ($names as $name) { 70 70 $id = substr($name, 1); 71 + $id = phutil_utf8_strtolower($id); 71 72 $id_map[$id][] = $name; 72 73 } 73 74 ··· 78 79 79 80 $results = array(); 80 81 foreach ($objects as $id => $object) { 81 - $username = $object->getUsername(); 82 - foreach (idx($id_map, $username, array()) as $name) { 82 + $user_key = $object->getUsername(); 83 + $user_key = phutil_utf8_strtolower($user_key); 84 + foreach (idx($id_map, $user_key, array()) as $name) { 83 85 $results[$name] = $object; 84 86 } 85 87 }