Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14034803
D9451.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
871 B
Referenced Files
None
Subscribers
None
D9451.diff
View Options
diff --git a/src/applications/people/phid/PhabricatorPeoplePHIDTypeUser.php b/src/applications/people/phid/PhabricatorPeoplePHIDTypeUser.php
--- a/src/applications/people/phid/PhabricatorPeoplePHIDTypeUser.php
+++ b/src/applications/people/phid/PhabricatorPeoplePHIDTypeUser.php
@@ -68,6 +68,7 @@
$id_map = array();
foreach ($names as $name) {
$id = substr($name, 1);
+ $id = phutil_utf8_strtolower($id);
$id_map[$id][] = $name;
}
@@ -78,8 +79,9 @@
$results = array();
foreach ($objects as $id => $object) {
- $username = $object->getUsername();
- foreach (idx($id_map, $username, array()) as $name) {
+ $user_key = $object->getUsername();
+ $user_key = phutil_utf8_strtolower($user_key);
+ foreach (idx($id_map, $user_key, array()) as $name) {
$results[$name] = $object;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 11, 2:13 AM (1 w, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736270
Default Alt Text
D9451.diff (871 B)
Attached To
Mode
D9451: Make named lookup of users case insensitive
Attached
Detach File
Event Timeline
Log In to Comment