Page MenuHomePhorge

D25321.1736751267.diff
No OneTemporary

D25321.1736751267.diff

diff --git a/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php b/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php
--- a/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php
+++ b/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php
@@ -156,8 +156,10 @@
$terms_map = array();
foreach ($blocklist as $term) {
$terms_map[$term] = $term;
- foreach (preg_split('/[ @.]/', $term) as $subterm) {
- $terms_map[$subterm] = $term;
+ if (phutil_nonempty_string($term)) {
+ foreach (preg_split('/[ @.]/', $term) as $subterm) {
+ $terms_map[$subterm] = $term;
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 13, 06:54 (18 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108734
Default Alt Text
D25321.1736751267.diff (674 B)

Event Timeline