- add hyperlinks to the path components in the ``Index of /foo/bar/baz'' line,
(except for the part representing current directory) if going there is allowed
(i.e hyperlinks for ``/'', ``foo/'' and ``bar/'' but not for ``baz'')
This also supports the case when the root ("/") is readable.
- avoid adding a ``Go to parent directory'' line if target == current dir
(i.e. if current dir == '/')
Right now giving empty string for the dir in /magic/webls?dir= gives a
directory of ``.''. One _might_ consider adding at the start of :/^dols
if(strcmp(dir, "") ==0)
dir = "/";
(i.e. before the ``cleanname(dir);'' statement) to normalize on "/" as the root.
Axel.
|