Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/httpd-webls-clickable-path/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


 - 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.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].