mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
change order
This commit is contained in:
parent
0359ba8cc1
commit
a994bd0ae2
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue