summaryrefslogtreecommitdiff
path: root/Postman
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2020-01-12 16:02:52 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2020-01-12 16:02:52 +0000
commit2850339b7b0f53042c2f27e7802e273c36d1cef8 (patch)
treef1a3ef5d10fa0b5cf0e715669abb4895ad2e7ce1 /Postman
parent8f8e3437f14dd531f263f1c8fdab931f167a0392 (diff)
downloadPost-SMTP-2850339b7b0f53042c2f27e7802e273c36d1cef8.zip
Fix Reply-To header bug
Diffstat (limited to 'Postman')
-rw-r--r--Postman/Postman-Mail/PostmanMessage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Postman/Postman-Mail/PostmanMessage.php b/Postman/Postman-Mail/PostmanMessage.php
index 4099a02..fd59d3b 100644
--- a/Postman/Postman-Mail/PostmanMessage.php
+++ b/Postman/Postman-Mail/PostmanMessage.php
@@ -453,7 +453,7 @@ if ( ! class_exists( 'PostmanMessage' ) ) {
$pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i';
preg_match_all($pattern, $content, $matches);
- if ( isset( $matches[0] ) && is_email( $matches[0] ) ) {
+ if ( isset( $matches[0] ) && isset( $matches[0][0] ) && filter_var( $matches[0][0], FILTER_VALIDATE_EMAIL ) ) {
$this->setReplyTo( $content );
}