change order
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index 0364c78..f20a337 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -1184,11 +1184,11 @@
             continue;
         }
 
-        if (len > 2 && (ch == '/'
+        if ((ch == '/'
 #if (NGX_WIN32)
-                        || ch == '\\'
+             || ch == '\\'
 #endif
-            ))
+            ) && len > 2)
         {
             /* detect "/../" */