From a78b40478934fb469c8e2ee3fbe04d076def1a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Tue, 8 Nov 2011 21:54:57 +0800 Subject: [PATCH] fixed a bug in the variable_header_ignore_no_hash patch for nginx 1.0.9. --- .../nginx-1.0.9-variable_header_ignore_no_hash.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/patches/nginx-1.0.9-variable_header_ignore_no_hash.patch b/patches/nginx-1.0.9-variable_header_ignore_no_hash.patch index 61b17cd..554078f 100644 --- a/patches/nginx-1.0.9-variable_header_ignore_no_hash.patch +++ b/patches/nginx-1.0.9-variable_header_ignore_no_hash.patch @@ -1,5 +1,5 @@ ---- nginx-1.0.9/src/http/ngx_http_variables.c 2011-05-30 05:36:17.000000000 -0700 -+++ nginx-1.0.9-patched/src/http/ngx_http_variables.c 2011-09-30 10:59:05.000000000 -0700 +--- nginx-1.0.9/src/http/ngx_http_variables.c 2011-05-30 20:36:17.000000000 +0800 ++++ nginx-1.0.9-patched/src/http/ngx_http_variables.c 2011-11-08 21:39:28.509366052 +0800 @@ -648,7 +648,17 @@ a = (ngx_array_t *) ((char *) r + data); @@ -44,10 +44,12 @@ len += h[i]->value.len + sizeof("; ") - 1; } -@@ -683,6 +696,11 @@ +@@ -682,7 +695,12 @@ + v->len = len; v->data = p; - for (i = 0; /* void */ ; i++) { +- for (i = 0; /* void */ ; i++) { ++ for (i = 0; i < n; i++) { + + if (h[i]->hash == 0) { + continue;