mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08: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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len > 2 && (ch == '/'
|
if ((ch == '/'
|
||||||
#if (NGX_WIN32)
|
#if (NGX_WIN32)
|
||||||
|| ch == '\\'
|
|| ch == '\\'
|
||||||
#endif
|
#endif
|
||||||
))
|
) && len > 2)
|
||||||
{
|
{
|
||||||
/* detect "/../" */
|
/* detect "/../" */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user