зеркало из https://github.com/mozilla/pjs.git
Bug #231742 --> Identity smart logic is case sensitive....normalize the email addresses from the message we are using when comparing to our identity addresses.
This commit is contained in:
Родитель
a474a0f07b
Коммит
411d11670f
|
@ -70,6 +70,8 @@ function getBestIdentity(identities, optionalHint)
|
|||
|
||||
// if we have more than one identity and a hint to help us pick one
|
||||
if (identities.Count() > 1 && optionalHint) {
|
||||
// normalize case on the optional hint to improve our chances of finding a match
|
||||
optionalHint = optionalHint.toLowerCase();
|
||||
// iterate over all of the identities
|
||||
var tempID;
|
||||
for (id = 0; id < identities.Count(); id++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче