mirror of
https://github.com/eapl-gemugami/gemini-php.git
synced 2025-02-08 04:54:18 +00:00
Tweak index functionality
This commit is contained in:
parent
16fd2991d3
commit
a773710bb2
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user