Skip to content

Commit

Permalink
Patch security breach when using reverse proxy HTTP cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ScreamZ committed Apr 5, 2016
1 parent e2a51bd commit 17967c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/SecureDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function downloadHash($documentHash, $accessKey)
$downloadRequest = $this->initiateDownloadRequest($documentHash, $accessKey);

if ($downloadRequest->isProcessable()) {
$binaryResponse = new BinaryFileResponse($downloadRequest->getFilePath());
$binaryResponse = new BinaryFileResponse($downloadRequest->getFilePath(), 200, array(), false);
$binaryResponse->setContentDisposition(
ResponseHeaderBag::DISPOSITION_ATTACHMENT,
basename($downloadRequest->getFilePath()),
Expand Down

0 comments on commit 17967c4

Please sign in to comment.