/WebSVN/filedetails.php
118,20 → 118,6
exit;
}
 
// Explicitly requested file as attachment
if (isset($_REQUEST['getfile']))
{
$base = basename($path);
 
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: inline; filename=".urlencode($base));
 
$svnrep->getFileContents($path, "", $rev);
 
exit;
}
 
// There's no associated MIME type. Show the file using WebSVN.
 
$url = $config->getURL($rep, $path, "file");
157,9 → 143,6
$url = $config->getURL($rep, $path, "blame");
$vars["blamelink"] = "<a href=\"${url}rev=$passrev&amp;sc=$showchanged\">${lang["BLAME"]}</a>";
 
$url = $config->getURL($rep, $path, "get");
$vars["getfile"] = "<a href=\"${url}getfile&amp;rev=$passrev&amp;sc=$showchanged\">${lang["GETFILE"]}</a>";
 
$listing = array ();
 
$vars["version"] = $version;