Page MenuHomePhorge

D5871.1775762991.diff
No OneTemporary

Authored By
Unknown
Size
737 B
Referenced Files
None
Subscribers
None

D5871.1775762991.diff

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

Mime Type
text/plain
Expires
Thu, Apr 9, 7:29 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823536
Default Alt Text
D5871.1775762991.diff (737 B)

Event Timeline