about summary refs log tree commit homepage
path: root/extras
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-09-01 22:45:21 +0000
committerEric Wong <e@80x24.org>2014-09-01 22:45:21 +0000
commitef16914521dda4fcc8ee77ab44696fa58b749d37 (patch)
tree0d26d9dde1cc546ddd1d550d212a1f754d826260 /extras
parentf7870c9f6ee2814391d234d7a2c84fb91277caab (diff)
downloadyahns-ef16914521dda4fcc8ee77ab44696fa58b749d37.tar.gz
No need to waste space on this (and trigger "Bad partial
reference!" warnings on lynx)
Diffstat (limited to 'extras')
-rw-r--r--extras/autoindex.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/autoindex.rb b/extras/autoindex.rb
index c8f7054..0ae7260 100644
--- a/extras/autoindex.rb
+++ b/extras/autoindex.rb
@@ -71,6 +71,8 @@ class Autoindex
         case base
         when "."
           next
+        when ".."
+          next if path_info == "/"
         end
 
         begin