mirror of
https://github.com/nginx/nginx.git
synced 2025-01-05 21:53:01 -06:00
change order
This commit is contained in:
parent
0359ba8cc1
commit
a994bd0ae2
@ -1184,11 +1184,11 @@ ngx_http_parse_unsafe_uri(ngx_http_request_t *r, ngx_str_t *uri,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (len > 2 && (ch == '/'
|
||||
if ((ch == '/'
|
||||
#if (NGX_WIN32)
|
||||
|| ch == '\\'
|
||||
|| ch == '\\'
|
||||
#endif
|
||||
))
|
||||
) && len > 2)
|
||||
{
|
||||
/* detect "/../" */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user