]> git.kaiwu.me - nginx.git/commitdiff
change order
authorIgor Sysoev <igor@sysoev.ru>
Sat, 28 Oct 2006 13:59:56 +0000 (13:59 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 28 Oct 2006 13:59:56 +0000 (13:59 +0000)
src/http/ngx_http_parse.c

index 0364c784625de12ea8640fbe3cd7920070b5092b..f20a337da62a130d8a81de638f47b229f34f1340 100644 (file)
@@ -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 "/../" */