fixed coding fail from last commit
authorStricted <Stricted@nexus-irc.de>
Fri, 5 Oct 2012 13:13:04 +0000 (15:13 +0200)
committerStricted <Stricted@nexus-irc.de>
Fri, 5 Oct 2012 13:13:04 +0000 (15:13 +0200)
git_download.php

index 33fbd7828e7f7eaa0cbc054f37ddd7c2eece75ba..fc729861e51c52dc9ea603c7ffd26a3f28ee68b7 100644 (file)
@@ -71,9 +71,9 @@ if(isset($_GET['p'])){
                $d = shell_exec("rm -r /usr/share/gitweb/dl/".$name);
                header("Content-Type: application/x-gzip");
                header("Content-Disposition: attachment; filename=".$name."-".$hash.".tar.gz");
-               readfile("/usr/share/gitweb/dl/".$id);
+               $file = readfile("/usr/share/gitweb/dl/".$id);
                unlink("/usr/share/gitweb/dl/".$id);
-               
+               echo $file;
        }else{
                echo "unknown project";
        }