Diff options
authorMark Lodato <lodatom@gmail.com>
committerMark Lodato <lodatom@gmail.com>
commit
parent
tree
download
ui-plain: print directory listings
When a user requests a plain view of a tree (as opposed to a blob), print out a directory listing rather than giving a 404 Not Found. Also, fix a segfault when ctx->qry.path is NULL - i.e, when /plain is requested without a path. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Diffstat (limited to '')
-rw-r--r--ui-plain.c48
1 file changed, 47 insertions, 1 deletion