# HG changeset patch # User Igor Sysoev # Date 1162043996 0 # Node ID f7491a59e736df5a59dad3cd4b2fc877a7af9502 # Parent ccf3c59f8040550ea90e783aa3e037bc43c59c20 change order diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -1184,11 +1184,11 @@ ngx_http_parse_unsafe_uri(ngx_http_reque continue; } - if (len > 2 && (ch == '/' + if ((ch == '/' #if (NGX_WIN32) - || ch == '\\' + || ch == '\\' #endif - )) + ) && len > 2) { /* detect "/../" */