Page MenuHomePhabricator

D15843.diff
No OneTemporary

D15843.diff

diff --git a/src/aphront/response/AphrontFileResponse.php b/src/aphront/response/AphrontFileResponse.php
--- a/src/aphront/response/AphrontFileResponse.php
+++ b/src/aphront/response/AphrontFileResponse.php
@@ -101,6 +101,8 @@
$filename = $this->getDownload();
$filename = addcslashes($filename, '"\\');
+ $filename = preg_replace('/[\r\n\0]/', '', $filename);
+
$headers[] = array(
'Content-Disposition',
'attachment; filename="'.$filename.'"',

File Metadata

Mime Type
text/plain
Expires
May 9 2024, 7:41 PM (6 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6275812
Default Alt Text
D15843.diff (493 B)

Event Timeline