projects
/
gemini-php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16fd299
)
Tweak index functionality
author
seven
<seven@cygni>
Mon, 28 Sep 2020 02:53:44 +0000
(
03:53
+0100)
committer
seven
<seven@cygni>
Mon, 28 Sep 2020 02:53:44 +0000
(
03:53
+0100)
gemini.class.php
patch
|
blob
|
history
diff --git
a/gemini.class.php
b/gemini.class.php
index 4c08bfbdba563bec9c65623d55a60e9ba7093b0c..1add152510410fb97eba2b366f4e8034e7683e63 100644
(file)
--- 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'];