We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861557c commit 7484a0eCopy full SHA for 7484a0e
src/Attachment.php
@@ -307,6 +307,7 @@ public function decodeName(?string $name): string {
307
if (str_contains($name, "''")) {
308
$parts = explode("''", $name);
309
if (EncodingAliases::has($parts[0])) {
310
+ $encoding = $parts[0];
311
$name = implode("''", array_slice($parts, 1));
312
}
313
@@ -323,6 +324,10 @@ public function decodeName(?string $name): string {
323
324
$name = urldecode($name);
325
326
327
+ if (isset($encoding)) {
328
+ $name = EncodingAliases::convert($name, $encoding);
329
+ }
330
+
331
// sanitize $name
332
$replaces = [
333
'/\\\\/' => '',
0 commit comments