summaryrefslogtreecommitdiff
path: root/browse.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-12-26 17:25:35 +0100
committerVincent Douillet <vincent@vdouillet.fr>2024-12-26 17:25:35 +0100
commita29738212841dcb699dc397ad66c3416324eccf8 (patch)
tree3a28a9730f33461a34198c0c3ff50e7c73e04051 /browse.c
parent69208140ddc9faa4e607cacefab6cae9badeaa7c (diff)
remove check_request_path because we have unveil
Diffstat (limited to 'browse.c')
-rw-r--r--browse.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/browse.c b/browse.c
index 6cd0fd6..a230fe0 100644
--- a/browse.c
+++ b/browse.c
@@ -294,14 +294,6 @@ browse(struct kreq * r)
KHTTP_200, ""
};
- /* check that the requested URL can be safely processed */
- if (!check_request_path(r->path, r->suffix)) {
- ret = (struct http_ret) {
- KHTTP_400,
- "browse: Invalid request path"
- };
- goto end;
- }
/* list requested directory content */
file = file_new(r->path);
if (file == NULL) {