mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
skip URI trailing spaces under Win32
This commit is contained in:
parent
918ef947da
commit
77860d74a5
@ -788,9 +788,11 @@ ngx_http_process_request_line(ngx_event_t *rev)
|
||||
|
||||
p = r->uri.data + r->uri.len - 1;
|
||||
|
||||
if (*p == '.') {
|
||||
if (*p == '.' || *p == ' ') {
|
||||
|
||||
while (--p > r->uri.data && *p == '.') { /* void */ }
|
||||
while (--p > r->uri.data && (*p == '.' || *p == ' ')) {
|
||||
/* void */
|
||||
}
|
||||
|
||||
r->uri.len = p + 1 - r->uri.data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user