Fix encoding of Content-Disposition header
URL-encode file name in Content-Disposition header for file download. fixes box/spout#878
This commit is contained in:
parent
cc42c1d29f
commit
0739e044da
@ -140,8 +140,8 @@ abstract class WriterAbstract implements WriterInterface
|
|||||||
$this->globalFunctionsHelper->header('Content-Type: ' . static::$headerContentType);
|
$this->globalFunctionsHelper->header('Content-Type: ' . static::$headerContentType);
|
||||||
$this->globalFunctionsHelper->header(
|
$this->globalFunctionsHelper->header(
|
||||||
'Content-Disposition: attachment; ' .
|
'Content-Disposition: attachment; ' .
|
||||||
'filename="' . rawurldecode($this->outputFilePath) . '"; ' .
|
'filename="' . rawurlencode($this->outputFilePath) . '"; ' .
|
||||||
'filename*=UTF-8\'\'' . rawurldecode($this->outputFilePath)
|
'filename*=UTF-8\'\'' . rawurlencode($this->outputFilePath)
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user