Browse Source

Tweak index functionality

master
seven 4 years ago
parent
commit
a773710bb2
  1. 2
      gemini.class.php

2
gemini.class.php

@ -98,7 +98,7 @@ class Gemini {
// Kristall Browser is adding "__" to the end of the filenames // Kristall Browser is adding "__" to the end of the filenames
// wtf am I missing? // wtf am I missing?
$url['path'] = str_replace("__", "", $url['path']); $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; $url['path'] = "/".$this->default_index_file;
return $this->data_dir.$hostname.$url['path']; return $this->data_dir.$hostname.$url['path'];

Loading…
Cancel
Save