Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F118675243
D5871.1775975219.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
737 B
Referenced Files
None
Subscribers
None
D5871.1775975219.diff
View Options
diff --git a/src/app/Policy/SmtpAccess.php b/src/app/Policy/SmtpAccess.php
--- a/src/app/Policy/SmtpAccess.php
+++ b/src/app/Policy/SmtpAccess.php
@@ -17,7 +17,7 @@
public static function reception($data): Response
{
// Check access policy
- if (!self::verifyRecipient($data['sender'], $data['recipient'])) {
+ if (!self::verifyRecipient($data['sender'] ?? '', $data['recipient'])) {
return new Response(Response::ACTION_REJECT, 'Invalid recipient', 403);
}
@@ -144,6 +144,7 @@
$sender = \strtolower($sender);
if (!str_contains($sender, '@')) {
+ // FIXME: $sender can be empty in case of an empty SMTP FROM
return false;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 6:26 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823536
Default Alt Text
D5871.1775975219.diff (737 B)
Attached To
Mode
D5871: Prevent error on empty sender in SmtpAccess::verifyRecipient()
Attached
Detach File
Event Timeline