From c7ca62a7e970ac79f22c9d2c71dc2fc4a6efe4a1 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sun, 3 Jan 2021 22:18:30 +0100 Subject: [PATCH] Add TODO for double slashes --- src/uri.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uri.c b/src/uri.c index 6219784..c28063b 100644 --- a/src/uri.c +++ b/src/uri.c @@ -64,6 +64,7 @@ int uri_init(http_uri *uri, const char *webroot, const char *uri_str, int dir_mo if (strstr(uri->req_path, "/../") != NULL || strstr(uri->req_path, "/./") != NULL) { return 2; } + // TODO handle double slashes in URI size = strlen(uri->req_path) + 1; uri->path = malloc(size);