ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add support dash in http variable name


  • Subject: [PATCH] Add support dash in http variable name
  • From: Kirill A. Korinskiy <catap@xxxxxxxx>
  • Date: Thu, 25 Jun 2009 13:22:51 +0400
  • Cc: catap@xxxxxxxx

---
 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--



 




Copyright © Lexa Software, 1996-2009.