From: Igor Sysoev Date: Thu, 1 Apr 2010 12:45:59 +0000 (+0000) Subject: escape ampersand in argument while rewrite X-Git-Tag: release-0.8.35~3 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=170a54f326ff6d49058dcc4e4b5dcf36bcbb134a;p=nginx.git escape ampersand in argument while rewrite --- diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 829913483..a1aeb4764 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -1278,13 +1278,13 @@ ngx_escape_uri(u_char *dst, u_char *src, size_t size, ngx_uint_t type) 0xffffffff /* 1111 1111 1111 1111 1111 1111 1111 1111 */ }; - /* " ", "#", "%", "+", "?", %00-%1F, %7F-%FF */ + /* " ", "#", "%", "&", "+", "?", %00-%1F, %7F-%FF */ static uint32_t args[] = { 0xffffffff, /* 1111 1111 1111 1111 1111 1111 1111 1111 */ /* ?>=< ;:98 7654 3210 /.-, +*)( '&%$ #"! */ - 0x80000829, /* 1000 0000 0000 0000 0000 1000 0010 1001 */ + 0x80000869, /* 1000 0000 0000 0000 0000 1000 0110 1001 */ /* _^]\ [ZYX WVUT SRQP ONML KJIH GFED CBA@ */ 0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */