comparison src/http/ngx_http_parse.c @ 824:f7491a59e736

change order
author Igor Sysoev <igor@sysoev.ru>
date Sat, 28 Oct 2006 13:59:56 +0000
parents ccf3c59f8040
children f9b9b84a8e18
comparison
equal deleted inserted replaced
823:ccf3c59f8040 824:f7491a59e736
1182 if (ch == '\0') { 1182 if (ch == '\0') {
1183 *flags |= NGX_HTTP_ZERO_IN_URI; 1183 *flags |= NGX_HTTP_ZERO_IN_URI;
1184 continue; 1184 continue;
1185 } 1185 }
1186 1186
1187 if (len > 2 && (ch == '/' 1187 if ((ch == '/'
1188 #if (NGX_WIN32) 1188 #if (NGX_WIN32)
1189 || ch == '\\' 1189 || ch == '\\'
1190 #endif 1190 #endif
1191 )) 1191 ) && len > 2)
1192 { 1192 {
1193 /* detect "/../" */ 1193 /* detect "/../" */
1194 1194
1195 if (p[0] == '.' && p[1] == '.' && p[2] == '/') { 1195 if (p[0] == '.' && p[1] == '.' && p[2] == '/') {
1196 goto unsafe; 1196 goto unsafe;