Prepend files or directories containing ":" with "./" in directory
authorflorian <florian@openbsd.org>
Sat, 25 Apr 2015 14:40:35 +0000 (14:40 +0000)
committerflorian <florian@openbsd.org>
Sat, 25 Apr 2015 14:40:35 +0000 (14:40 +0000)
commit3bbf9882e565df0d1494c18f4ad4cf73875a9306
treeb8ed504da54a3d668f18f9f85cfb193a496997c7
parentb76c38a16cdde378bde5fcafbc08d7d26d4a5e18
Prepend files or directories containing ":" with "./" in directory
indexes as per RFC 3986:
A path segment that contains a colon character (e.g., "this:that")
cannot be used as the first segment of a relative-path reference, as
it would be mistaken for a scheme name.  Such a segment must be
preceded by a dot-segment (e.g., "./this:that") to make a relative-
path reference.

While here add a "/" to the end of directory names, this saves us one
redirect round trip.

Found the hard way & "functionality wise, OK" ajacoutot@
RFC pointer & OK benno@
usr.sbin/httpd/server_file.c