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	Sat Oct 28 12:04:43 2006 +0000
+++ b/src/http/ngx_http_parse.c	Sat Oct 28 13:59:56 2006 +0000
@@ -1184,11 +1184,11 @@
             continue;
         }
 
-        if (len > 2 && (ch == '/'
+        if ((ch == '/'
 #if (NGX_WIN32)
-                        || ch == '\\'
+             || ch == '\\'
 #endif
-            ))
+            ) && len > 2)
         {
             /* detect "/../" */