Skip to content

Commit 251bf3a

Browse files
committed
Clone message to prevent header alteration persisting in RoundRobinTransport
1 parent 71180b2 commit 251bf3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Transport/RoundRobinTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function send(RawMessage $message, ?Envelope $envelope = null): ?SentMess
5252

5353
while ($transport = $this->getNextTransport()) {
5454
try {
55-
return $transport->send($message, $envelope);
55+
return $transport->send(clone $message, $envelope);
5656
} catch (TransportExceptionInterface $e) {
5757
$exception ??= new TransportException('All transports failed.');
5858
$exception->appendDebug(sprintf("Transport \"%s\": %s\n", $transport, $e->getDebug()));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy