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
Jun 16 2024, 2:14 AM (5 w, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6275812
Default Alt Text
D15843.diff (493 B)

Event Timeline