diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2021-06-28 18:01:13 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2021-06-28 18:01:13 +0300 |
commit | 05395f4889cf0b66e8d049921ad19f1a08319150 (patch) | |
tree | cd8166ac14b8e8d5751abb46b9cb4d07160dc1d2 /src/http/ngx_http_request.c | |
parent | fee09fc49d510de0078f9bc7fc18dc179cceb62b (diff) | |
download | nginx-05395f4889cf0b66e8d049921ad19f1a08319150.tar.gz nginx-05395f4889cf0b66e8d049921ad19f1a08319150.zip |
Disabled spaces in URIs (ticket #196).
From now on, requests with spaces in URIs are immediately rejected rather
than allowed. Spaces were allowed in 31e9677b15a1 (0.8.41) to handle bad
clients. It is believed that now this behaviour causes more harm than
good.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 2614b998c..7956610c4 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -1264,7 +1264,7 @@ ngx_http_process_request_uri(ngx_http_request_t *r) r->unparsed_uri.len = r->uri_end - r->uri_start; r->unparsed_uri.data = r->uri_start; - r->valid_unparsed_uri = (r->space_in_uri || r->empty_path_in_uri) ? 0 : 1; + r->valid_unparsed_uri = r->empty_path_in_uri ? 0 : 1; if (r->uri_ext) { if (r->args_start) { |