summaryrefslogtreecommitdiff
path: root/browse.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-11 11:20:31 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-11 11:20:31 +0200
commit19e47daa9c1fb55f2cb9e639d5a6ef16b5bc4e88 (patch)
tree2b98ac0700a11cb142625d8355019c44b49c1850 /browse.c
parent4e921ffa31fdca2425d326efda1c6d9ad190359a (diff)
url: fix encoding for use in http context
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 b233c8b..801b539 100644
--- a/browse.c
+++ b/browse.c
@@ -114,8 +114,8 @@ build_file_list(struct kreq * r, const struct file * request_dir)
|| strcmp("..", dir->d_name) == 0)
continue;
/* build file path */
- file_path_len = url_build(file_path, PATH_MAX, r->path,
- dir->d_name, NULL);
+ file_path_len = path_build(file_path, PATH_MAX, r->path,
+ dir->d_name, NULL);
if (file_path_len == 0 || file_path_len >= PATH_MAX) {
kutil_warn(r, NULL,
"browse: unable to build file, skipping %s",