Skip to content

Commit 8690e61

Browse files
authored
Merge pull request #7 from djmonta/fix-ie-filename-nonascii
fix non-ASCII filnemae garbled on Internet Explorer
2 parents e17cfaa + aaa0f42 commit 8690e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function send($filename = null, $contentType, $inline = false)
8383

8484
if ($filename!==null || $inline) {
8585
$disposition = $inline ? 'inline' : 'attachment';
86-
header("Content-Disposition: $disposition; filename=\"$filename\"");
86+
header('Content-Disposition: ' . $disposition . '; filename=' .$filename. '; filename*=UTF-8\'\''.rawurlencode($filename));
8787
}
8888

8989
readfile($this->_fileName);

0 commit comments

Comments
 (0)