Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2697952
D25211.1734979310.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
641 B
Referenced Files
None
Subscribers
None
D25211.1734979310.diff
View Options
diff --git a/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php b/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
--- a/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
+++ b/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
@@ -184,7 +184,7 @@
new PhabricatorSettingsAddEmailAction(),
1);
- if (!strlen($email)) {
+ if (!phutil_nonempty_string($email)) {
$e_email = pht('Required');
$errors[] = pht('Email is required.');
} else if (!PhabricatorUserEmail::isValidAddress($email)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 18:41 (14 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1027155
Default Alt Text
D25211.1734979310.diff (641 B)
Attached To
Mode
D25211: Fix PHP 8.1 "strlen(null)" exception when trying to add empty user email address
Attached
Detach File
Event Timeline
Log In to Comment