Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: gitweb: Support for snapshots in gitweb

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:37

Aneesh Kumar K.V wrote:
+       print $cgi->header(-type=>'application/x-tar', -Content-Encoding=>'x-gzip',
+               '-content-disposition' => "inline; filename=\"$project.tar.gz\"",
+               -status=> '200 OK');
Wouldn't it be better to put $hash somewhere in the name?

And please remember that $project can contain slashes, so it should be processed
(only basename of $project, perhaps).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help