Page MenuHomePhorge

D25478.1734770650.diff
No OneTemporary

D25478.1734770650.diff

diff --git a/src/applications/differential/controller/DifferentialRevisionViewController.php b/src/applications/differential/controller/DifferentialRevisionViewController.php
--- a/src/applications/differential/controller/DifferentialRevisionViewController.php
+++ b/src/applications/differential/controller/DifferentialRevisionViewController.php
@@ -1090,20 +1090,11 @@
$request_uri = $this->getRequest()->getRequestURI();
- // this ends up being something like
- // D123.diff
- // or the verbose
- // D123.vs123.id123.highlightjs.diff
- // lame but nice to include these options
- $file_name = ltrim($request_uri->getPath(), '/').'.';
- foreach ($request_uri->getQueryParamsAsPairList() as $pair) {
- list($key, $value) = $pair;
- if ($key == 'download') {
- continue;
- }
- $file_name .= $key.$value.'.';
- }
- $file_name .= 'diff';
+ // Filename ends up being something like D123.1692295858.diff
+ $timestamp =
+ PhabricatorTime::getNow() +
+ phutil_units('24 hours in seconds');
+ $file_name = ltrim($request_uri->getPath(), '/').'.'.$timestamp.'.diff';
$iterator = new ArrayIterator(array($raw_diff));

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 08:44 (14 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024306
Default Alt Text
D25478.1734770650.diff (1 KB)

Event Timeline