]> git.kaiwu.me - nginx.git/commitdiff
escape ampersand in argument while rewrite
authorIgor Sysoev <igor@sysoev.ru>
Thu, 1 Apr 2010 12:45:59 +0000 (12:45 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 1 Apr 2010 12:45:59 +0000 (12:45 +0000)
src/core/ngx_string.c

index 8299134838c9f654c10c224a6315c0d9f9877955..a1aeb476473425957a4113955ae591e44d52fee9 100644 (file)
@@ -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 */