Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2685067
D25564.1734698910.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
537 B
Referenced Files
None
Subscribers
None
D25564.1734698910.diff
View Options
diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php
--- a/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php
+++ b/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php
@@ -524,7 +524,7 @@
public function newFromAddress() {
$raw_from = $this->getHeader('From');
- if (strlen($raw_from)) {
+ if (phutil_nonempty_string($raw_from)) {
return new PhutilEmailAddress($raw_from);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 12:48 (21 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1018281
Default Alt Text
D25564.1734698910.diff (537 B)
Attached To
Mode
D25564: Fix PHP 8.1 "strlen(null)" exception when received email lacks From header
Attached
Detach File
Event Timeline
Log In to Comment