Page MenuHomePhabricator

D9261.diff
No OneTemporary

D9261.diff

diff --git a/src/applications/people/storage/PhabricatorUserEmail.php b/src/applications/people/storage/PhabricatorUserEmail.php
--- a/src/applications/people/storage/PhabricatorUserEmail.php
+++ b/src/applications/people/storage/PhabricatorUserEmail.php
@@ -89,7 +89,15 @@
return false;
}
- return in_array($domain, $allowed_domains);
+ $lower_domain = phutil_utf8_strtolower($domain);
+ foreach ($allowed_domains as $allowed_domain) {
+ $lower_allowed = phutil_utf8_strtolower($allowed_domain);
+ if ($lower_allowed === $lower_domain) {
+ return true;
+ }
+ }
+
+ return false;
}

File Metadata

Mime Type
text/plain
Expires
Sun, May 26, 2:26 AM (3 w, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6275818
Default Alt Text
D9261.diff (641 B)

Event Timeline