Fix to handle 'implicit dir paths' (ie., paths that match a dir but have no trailing /) properly in menu

This commit is contained in:
uriel 2008-07-04 22:49:05 +02:00
parent b82d3855af
commit 0ad779eb82

View File

@ -53,7 +53,7 @@ fn menu {
path = $0 "/"
}
if(index(ENVIRON["REQUEST_URI"], "/" path) == 1) {
if(index(ENVIRON["REQUEST_URI"] "/", "/" path) == 1) {
if(isdir) {
print "<li><a href=\"/" path "\" class=\"thisPage\">&raquo;<i> " bname "</i></a>"
system("rc -c ''menu " path "''")