summaryrefslogtreecommitdiff
path: root/browse.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-09 13:52:35 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-10 12:01:05 +0200
commit4e921ffa31fdca2425d326efda1c6d9ad190359a (patch)
tree8d0fe130bd26dedb5c0754249734608217bbd6b9 /browse.c
parentd7edafe299d44a0bec9d29e2b3a4ca853ffa1a80 (diff)
upload: handle form submission
Diffstat (limited to 'browse.c')
-rw-r--r--browse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/browse.c b/browse.c
index ce76290..b233c8b 100644
--- a/browse.c
+++ b/browse.c
@@ -57,7 +57,7 @@ SLIST_HEAD(, file) list;
/*
* browse url = r->pname / BROWSE_URL / file->path
*/
-static size_t
+size_t
build_browse_url(struct kreq * r, struct file * file)
{
char action_url[PATH_MAX];
@@ -95,7 +95,7 @@ build_file_list(struct kreq * r, const struct file * request_dir)
struct file *last_file;
request_dir_len = file_get_data_path(request_dir, request_dir_path,
- PATH_MAX);
+ PATH_MAX, NULL);
if (request_dir_len == 0) {
kutil_warn(r, NULL,
"browse: Unable to build request dir path: %s",