Skip to content

Commit 3810eaa

Browse files
committed
bug #47703 [Mailer][Mailjet] Apply the default value of 512 for max depths (nurtext)
This PR was merged into the 6.1 branch. Discussion ---------- [Mailer][Mailjet] Apply the default value of 512 for max depths | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #47701 | License | MIT | Doc PR | n/a Applies the default value of 512 for max depths when using PHP's json_decode() function. See #47701 for more details. Commits ------- 7832d77 [symfony/mailjet-mailer] Fix bug #47701
2 parents f1dca3e + 7832d77 commit 3810eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Mailjet/Transport/MailjetApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function castCustomHeader(string $value, string $type)
201201
return match ($type) {
202202
'bool' => filter_var($value, \FILTER_VALIDATE_BOOLEAN),
203203
'int' => (int) $value,
204-
'json' => json_decode($value, true, 2, \JSON_THROW_ON_ERROR),
204+
'json' => json_decode($value, true, 512, \JSON_THROW_ON_ERROR),
205205
'string' => $value,
206206
};
207207
}

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