Add TODO for double slashes

This commit is contained in:
2021-01-03 22:18:30 +01:00
parent 5d01f7e219
commit c7ca62a7e9

View File

@ -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);