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]))) {