diff options
Diffstat (limited to 'browse.c')
-rw-r--r-- | browse.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -49,7 +49,8 @@ build_browse_url(struct kreq * r, char *url, size_t url_size, const char *file) char *page_name; page_name = strlen(r->pagename) == 0 ? BROWSE_URL : r->pagename; - return url_build(url, url_size, 4, r->pname, page_name, r->path, file); + return url_build(url, url_size, r->pname, page_name, r->path, file, + NULL); } void @@ -67,7 +68,8 @@ browse(struct kreq * r) http_exit(r, KHTTP_400, "browse: Invalid request path"); /* list requested directory content */ - url_size = url_build(current_dir, URL_LENGTH_MAX, 2, DATA_DIR, r->path); + url_size = url_build(current_dir, URL_LENGTH_MAX, DATA_DIR, r->path, + NULL); if (url_size == 0) http_exit(r, KHTTP_404, "browse: Unable to build data path"); if (url_size >= URL_LENGTH_MAX) |