From a773710bb27814df0e73446714b3fda2867f8372 Mon Sep 17 00:00:00 2001 From: seven Date: Mon, 28 Sep 2020 03:53:44 +0100 Subject: [PATCH] Tweak index functionality --- gemini.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemini.class.php b/gemini.class.php index 4c08bfb..1add152 100644 --- a/gemini.class.php +++ b/gemini.class.php @@ -98,7 +98,7 @@ class Gemini { // Kristall Browser is adding "__" to the end of the filenames // wtf am I missing? $url['path'] = str_replace("__", "", $url['path']); - if($url['path'] == "" or $url['path'] == "/") + if(substr($url['path'], -1) == "/" or $url['path'] == "/" or $url['path'] == "") $url['path'] = "/".$this->default_index_file; return $this->data_dir.$hostname.$url['path'];