barryserver-git
Barry Added / to folder names 6c49b9e (4 years, 4 months ago)diff --git a/git.php b/git.php index a5b3658..6bc4a23 100644 --- a/git.php +++ b/git.php @@ -229,7 +229,7 @@ $FOOTER = "BarryServer Git Browser"; foreach (explode("\n",$files) as $file) { $name = explode(" ",$file); if ($name[1] == "tree") { - $folderstxt .= " <a href=\"".$ROOT.$SCRIPT."/".$repo."/".$branch."/".explode("\t",$name[2])[1]."/\" class=\"folder\">".end(explode("/",explode("\t",$name[2])[1]))."</a><br>\n"; + $folderstxt .= " <a href=\"".$ROOT.$SCRIPT."/".$repo."/".$branch."/".explode("\t",$name[2])[1]."/\" class=\"folder\">".end(explode("/",explode("\t",$name[2])[1]))."/</a><br>\n"; } if ($name[1] == "blob") { $filestxt .= " <a href=\"".$ROOT.$SCRIPT."/".$repo."/".$branch."/".explode("\t",$name[2])[1]."\" class=\"file\">".end(explode("/",explode("\t",$name[2])[1]))."</a><br>\n";