changeset 824:f7491a59e736

change order
author Igor Sysoev <igor@sysoev.ru>
date Sat, 28 Oct 2006 13:59:56 +0000
parents ccf3c59f8040
children f9b9b84a8e18
files src/http/ngx_http_parse.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 "/../" */