diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2024-09-05 12:58:22 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-09-06 12:22:20 +0200 |
commit | 35a145fd161fb4d4f19aa9820b50438695b94414 (patch) | |
tree | 00e9f341d5b7e0a6874efbe9fafc0500cf13cd2d /url.c | |
parent | 9b8d38ab209c6e7e747d6d420f1b105fe858c7eb (diff) |
browse: add upload button
Diffstat (limited to 'url.c')
-rw-r--r-- | url.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -38,9 +38,9 @@ #include "url.h" bool -check_request_path(char *path, char *suffix) +check_request_path(const char *path, const char *suffix) { - char p[PATH_MAX], resolved[PATH_MAX]; + char p [PATH_MAX], resolved[PATH_MAX]; char *rp, *data_dir; data_dir = config_data_dir(); @@ -61,7 +61,6 @@ check_request_path(char *path, char *suffix) if (strlcat(p, suffix, sizeof(p)) >= sizeof(p)) return false; } - /* canonicalize the path */ rp = realpath(p, resolved); if (rp == NULL) |