Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694359
D25210.1734779819.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
696 B
Referenced Files
None
Subscribers
None
D25210.1734779819.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
@@ -172,7 +172,9 @@
$email = null;
$errors = array();
if ($request->isDialogFormPost()) {
- $email = trim($request->getStr('email'));
+ if ($request->getStr('email')) {
+ $email = trim($request->getStr('email'));
+ }
if ($new == 'verify') {
// The user clicked "Done" from the "an email has been sent" dialog.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 11:16 (8 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024579
Default Alt Text
D25210.1734779819.diff (696 B)
Attached To
Mode
D25210: Fix PHP 8.1 "ltrim(null)" exception which blocks adding additional user email address
Attached
Detach File
Event Timeline
Log In to Comment