Update PHPMailer.php

This commit is contained in:
Mariusz Krzaczkowski 2025-10-02 11:18:08 +02:00 committed by GitHub
parent dc2ecee788
commit e8f4d86c66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -4397,7 +4397,7 @@ class PHPMailer
$cid_domain = '@phpmailer.0'; $cid_domain = '@phpmailer.0';
if (filter_var($this->From, FILTER_VALIDATE_EMAIL)) { if (filter_var($this->From, FILTER_VALIDATE_EMAIL)) {
//prepend with a character to create valid RFC822 string in order to validate //prepend with a character to create valid RFC822 string in order to validate
$cid_domain = substr( $this->From, strpos( $this->From, '@') + 1); $cid_domain = substr( $this->From, strrpos( $this->From, '@') + 1);
} }
preg_match_all('/(?<!-)(src|background)=["\'](.*)["\']/Ui', $message, $images); preg_match_all('/(?<!-)(src|background)=["\'](.*)["\']/Ui', $message, $images);