projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fba665a
)
httpd: remove duplicate "decode URL escape sequences" code
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 16 Apr 2019 09:58:28 +0000
(11:58 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 16 Apr 2019 09:58:28 +0000
(11:58 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index 11c26a8917162819343fd430786e013c86514443..8921c02a3b8ba0b03a5d378e960edc48e6346de8 100644
(file)
--- a/
networking/httpd.c
+++ b/
networking/httpd.c
@@
-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)