Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2869973
D25321.1736760749.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
674 B
Referenced Files
None
Subscribers
None
D25321.1736760749.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 09:32 (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108734
Default Alt Text
D25321.1736760749.diff (674 B)
Attached To
Mode
D25321: Fix PHP 8.1 "preg_split()(null)" exception registering account without Real Name
Attached
Detach File
Event Timeline
Log In to Comment