From 2850339b7b0f53042c2f27e7802e273c36d1cef8 Mon Sep 17 00:00:00 2001 From: yehudah Date: Sun, 12 Jan 2020 16:02:52 +0000 Subject: Fix Reply-To header bug --- Postman/Postman-Mail/PostmanMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Postman') 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 ); } -- cgit v1.2.3