Klaus Demo nginx / 85137dd
Fixed URI normalization with merge_slashes switched off. Previously, "/foo///../bar" was normalized into "/foo/bar" instead of "/foo//bar". Maxim Dounin 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
14701470 case '/':
14711471 case '?':
14721472 case '#':
1473 u -= 5;
1473 u -= 4;
14741474 for ( ;; ) {
14751475 if (u < r->uri.data) {
14761476 return NGX_HTTP_PARSE_INVALID_REQUEST;
15741574 u--;
15751575
15761576 } else if (state == sw_dot_dot) {
1577 u -= 5;
1577 u -= 4;
15781578
15791579 for ( ;; ) {
15801580 if (u < r->uri.data) {