From ee51d2890c91e91eb8bccb6e096c8a73addc294b Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 28 Jun 2023 07:48:51 +0200 Subject: [PATCH] needs ungreedy, to not include quotes --- api/src/Mail/Avatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail/Avatar.php b/api/src/Mail/Avatar.php index f319084d7d..835cd54c5b 100644 --- a/api/src/Mail/Avatar.php +++ b/api/src/Mail/Avatar.php @@ -69,7 +69,7 @@ class Avatar { return []; } - if (preg_match("/^\"?'?(.*)'?\"?\s+<([^<>'\"]+)>$/", $address, $matches)) + if (preg_match("/^\"?'?(.*?)'?\"?\s+<([^<>'\"]+)>$/", $address, $matches)) { if (($parts = preg_split('/[, ]+/', $matches[1]))) {