Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Mime] support overwriting form encoding#49587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
croensch wants to merge3 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromcroensch:mime-49315
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix serialization
  • Loading branch information
@croensch
croensch committedMar 3, 2023
commitef15f4f1a74b3299b18b244dcc5bc9bd45a5bcbc
6 changes: 3 additions & 3 deletionssrc/Symfony/Component/Mime/Part/DataPart.php
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,7 +32,7 @@ class DataPart extends TextPart
/**
* @param resource|string|File $body Use a File instance to defer loading the file until rendering
*/
public function __construct($body, string $filename = null, string $contentType = null, string $encoding = null)
public function __construct($body, string $filename = null, string $contentType = null, string $encoding = null, string $formEncoding = null)
{
unset($this->_parent);

Expand All@@ -45,7 +45,7 @@ public function __construct($body, string $filename = null, string $contentType

parent::__construct($body, null, $subtype, $encoding);

$this->formEncoding = $encoding ?? '8bit';
$this->formEncoding = $formEncoding ?? '8bit';

if (null !== $filename) {
$this->filename = $filename;
Expand All@@ -56,7 +56,7 @@ public function __construct($body, string $filename = null, string $contentType

public static function fromPath(string $path, string $name = null, string $contentType = null, string $encoding = null): self
{
return new self(new File($path), $name, $contentType, $encoding);
return new self(new File($path), $name, $contentType, $encoding, $encoding);
}

/**
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp