Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 670c72e

Browse files
committed
Revert the filename*= commit. Definitely not working on IE.
1 parent 065c81a commit 670c72e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

core/src/core/classes/class.HTMLWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public static function generateAttachmentsHeader(&$attachmentName, $dataSize, $i
174174
if ($isFile && ($dataSize != 0)) {
175175
header("Content-Range: bytes 0-" . ($dataSize- 1) . "/" . $dataSize . ";");
176176
}
177-
header('Content-Disposition: attachment; filename="' . $attachmentName . '"; filename*=utf-8\' \'' . rawurlencode($attachmentName));
177+
header("Content-Disposition: attachment; filename=\"".$attachmentName."\"");
178178
header("Expires: 0");
179179
header("Cache-Control: no-cache, must-revalidate");
180180
header("Pragma: no-cache");

core/src/plugins/access.fs/class.fsAccessDriver.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,8 +1472,7 @@ public function readFile($filePathOrData, $headerType="plain", $localName="", $d
14721472
$header_sendfile = "X-Sendfile";
14731473
header($header_sendfile.": ".SystemTextEncoding::toUTF8($filePathOrData));
14741474
header("Content-type: application/octet-stream");
1475-
$filename = basename($filePathOrData);
1476-
header('Content-Disposition: attachment; filename="' . $filename . '"; filename*=utf-8\' \'' . rawurlencode($filename));
1475+
header('Content-Disposition: attachment; filename="' . basename($filePathOrData) . '"');
14771476
return;
14781477
}
14791478
if ($this->getFilteredOption("USE_XACCELREDIRECT", $this->repository->getId()) && AJXP_MetaStreamWrapper::actualRepositoryWrapperClass($this->repository->getId()) == "fsAccessWrapper" && array_key_exists("X-Accel-Mapping",$_SERVER)) {
@@ -1486,8 +1485,7 @@ public function readFile($filePathOrData, $headerType="plain", $localName="", $d
14861485
if ($replacecount == 1) {
14871486
header("X-Accel-Redirect: $accelfile");
14881487
header("Content-type: application/octet-stream");
1489-
$filename = basename($accelfile);
1490-
header('Content-Disposition: attachment; filename="' . $filename . '"; filename*=utf-8\' \'' . rawurlencode($filename));
1488+
header('Content-Disposition: attachment; filename="' . basename($accelfile) . '"');
14911489
return;
14921490
} else {
14931491
$this->logError("X-Accel-Redirect","Problem with X-Accel-Mapping for file $filePathOrData");

0 commit comments

Comments
 (0)