From bd4d46013fe3dac99fa417813f63dbe52e7d4340 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 25 Mar 2019 20:01:40 -0600 Subject: [PATCH] Add trailing slash to directory links --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 9dffbf5..550c42a 100644 --- a/index.php +++ b/index.php @@ -1301,10 +1301,11 @@ word-break: break-all; foreach ($files as $f) { if (strpos($f, '.') !== 0 && !in_array($f, $IGNORE)) { echo "
  • \n"; - echo "\t"; if (is_dir($dir . "/" . $f)) { + echo "\t"; echo " "; } else { + echo "\t"; $icon = "fas fa-file"; $extension = strtolower(pathinfo("$dir/$f")['extension']); // If we don't have an extension, try using the whole filename