From ca22316ae432517a31a2be2e99d962a12c7c25c9 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 29 Jun 2013 23:29:21 +0100 Subject: [PATCH] Set root to blank to avoid double slash in path --- lib/get-branch.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/get-branch.php b/lib/get-branch.php index dbb7ba5..5b1dded 100644 --- a/lib/get-branch.php +++ b/lib/get-branch.php @@ -14,6 +14,7 @@ if (isset($_GET['location'])) { echo '
'; $location = str_replace("|","/",$_GET['location']); } +if ($location=="/") {$location = "";}; $dirArray = $filesArray = $finalArray = array(); $finalArray = scanDir($scanDir.$location);