← Commit list

cf695976c

Denys Vlasenko
Denys Vlasenko
2019-04-16
SUCCESS Duration: 151s

Subject

httpd: remove duplicate "decode URL escape sequences" code

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/httpd.c+0 -9
@@ -2177,15 +2177,6 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
g_query = tptr;
}
- /* Decode URL escape sequences */
- tptr = percent_decode_in_place(urlcopy, /*strict:*/ 1);
- if (tptr == NULL)
- send_headers_and_exit(HTTP_BAD_REQUEST);
- if (tptr == urlcopy + 1) {
- /* '/' or NUL is encoded */
- send_headers_and_exit(HTTP_NOT_FOUND);
- }
-
#if ENABLE_FEATURE_HTTPD_PROXY
proxy_entry = find_proxy_entry(urlcopy);
if (proxy_entry)