Skip to content

Commit fb91ddb

Browse files
authored
Merge pull request #8 from mikehaertl/fix-codingstyle
Fix coding style
2 parents 8690e61 + 9e4b3d3 commit fb91ddb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/File.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ 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. '; filename*=UTF-8\'\''.rawurlencode($filename));
86+
header(
87+
'Content-Disposition: ' . $disposition .
88+
'; filename=' . $filename .
89+
"; filename*=UTF-8''" . rawurlencode($filename)
90+
);
8791
}
8892

8993
readfile($this->_fileName);

0 commit comments

Comments
 (0)