MDL-73624 lib_spout: encode output file name

This commit is contained in:
Meirza
2022-10-27 17:09:57 +07:00
parent 24bc7e9a19
commit b9701a8bb8
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -4,6 +4,15 @@ Description of Spout library import
* Only include the src/Spout directory.
* Update lib/thirdpartylibs.xml with the latest version.
2022/10/27
----------
Changes:
Box/Spout has been archived and is no longer maintained,
MDL-73624 needs to fix with a couple of minor changes to
Writer/WriterAbstract.php. The changes replace rawurldecode() with
rawurlencode() in lines 143 and 144.
by Meirza <[email protected]>
2022/01/05
----------
Update to v3.3.0 (MDL-73497)
@@ -140,8 +140,8 @@ abstract class WriterAbstract implements WriterInterface
$this->globalFunctionsHelper->header('Content-Type: ' . static::$headerContentType);
$this->globalFunctionsHelper->header(
'Content-Disposition: attachment; ' .
'filename="' . rawurldecode($this->outputFilePath) . '"; ' .
'filename*=UTF-8\'\'' . rawurldecode($this->outputFilePath)
'filename="' . rawurlencode($this->outputFilePath) . '"; ' .
'filename*=UTF-8\'\'' . rawurlencode($this->outputFilePath)
);
/*