Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05fe56b commit 970bb63Copy full SHA for 970bb63
src/Symfony/Component/Mime/Part/TextPart.php
@@ -129,7 +129,7 @@ public function getPreparedHeaders(): Headers
129
if ($this->charset) {
130
$headers->setHeaderParameter('Content-Type', 'charset', $this->charset);
131
}
132
- if ($this->name) {
+ if ($this->name && 'form-data' !== $this->disposition) {
133
$headers->setHeaderParameter('Content-Type', 'name', $this->name);
134
135
$headers->setHeaderBody('Text', 'Content-Transfer-Encoding', $this->encoding);
0 commit comments