[PATCH] Add support dash in http variable name

Kirill A. Korinskiy catap at catap.ru
Thu Jun 25 13:22:51 MSD 2009


---
 src/http/ngx_http_script.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index b8e998a..1484f9f 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -300,7 +300,8 @@ ngx_http_script_compile(ngx_http_script_compile_t *sc)
                 if ((ch >= 'A' && ch <= 'Z')
                     || (ch >= 'a' && ch <= 'z')
                     || (ch >= '0' && ch <= '9')
-                    || ch == '_')
+                    || ch == '_'
+                    || ch == '-')
                 {
                     continue;
                 }
-- 
1.6.2


--Multipart_Thu_Jun_25_13:30:34_2009-1
Content-Type: text/plain; charset=US-ASCII



-- 
wbr, Kirill
--Multipart_Thu_Jun_25_13:30:34_2009-1--





More information about the nginx-ru mailing list