From: Igor Sysoev Date: Sat, 28 Oct 2006 13:59:56 +0000 (+0000) Subject: change order X-Git-Tag: release-0.4.12~10 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=a994bd0ae2a2b7f268f050c70e281e3081916d22;p=nginx.git change order --- diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 0364c7846..f20a337da 100644 --- 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_request_t *r, ngx_str_t *uri, continue; } - if (len > 2 && (ch == '/' + if ((ch == '/' #if (NGX_WIN32) - || ch == '\\' + || ch == '\\' #endif - )) + ) && len > 2) { /* detect "/../" */