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
b82d3855af
commit
0ad779eb82
@ -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…
Reference in New Issue
Block a user