Fix to handle 'implicit dir paths' (ie., paths that match a dir but have no trailing /) properly in menu
This commit is contained in:
parent
81baf713e6
commit
0dba064c8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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\">»<i> " bname "</i></a>"
|
||||
system("rc -c ''menu " path "''")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue