diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-16 11:58:28 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-16 11:58:28 +0200 |
commit | cf695976c7cf169495e749c8a907e47c269e0068 (patch) | |
tree | 0b9533ae9416a3783337170bdbd6a64e8503954d | |
parent | fba665a8889ad7ec20f926bf2719be5c688ed829 (diff) | |
download | busybox-w32-cf695976c7cf169495e749c8a907e47c269e0068.tar.gz busybox-w32-cf695976c7cf169495e749c8a907e47c269e0068.tar.bz2 busybox-w32-cf695976c7cf169495e749c8a907e47c269e0068.zip |
httpd: remove duplicate "decode URL escape sequences" code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/httpd.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 11c26a891..8921c02a3 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -2177,15 +2177,6 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) | |||
2177 | g_query = tptr; | 2177 | g_query = tptr; |
2178 | } | 2178 | } |
2179 | 2179 | ||
2180 | /* Decode URL escape sequences */ | ||
2181 | tptr = percent_decode_in_place(urlcopy, /*strict:*/ 1); | ||
2182 | if (tptr == NULL) | ||
2183 | send_headers_and_exit(HTTP_BAD_REQUEST); | ||
2184 | if (tptr == urlcopy + 1) { | ||
2185 | /* '/' or NUL is encoded */ | ||
2186 | send_headers_and_exit(HTTP_NOT_FOUND); | ||
2187 | } | ||
2188 | |||
2189 | #if ENABLE_FEATURE_HTTPD_PROXY | 2180 | #if ENABLE_FEATURE_HTTPD_PROXY |
2190 | proxy_entry = find_proxy_entry(urlcopy); | 2181 | proxy_entry = find_proxy_entry(urlcopy); |
2191 | if (proxy_entry) | 2182 | if (proxy_entry) |