comparison src/core/ngx_string.c @ 1347:142d979bc738 stable-0.5

r1333, r1334 merge: omit unnecessary code, escape space, etc in $memcached_key
author Igor Sysoev <igor@sysoev.ru>
date Sun, 29 Jul 2007 17:27:10 +0000
parents b766d9c0a2be
children fdd064faf26a
comparison
equal deleted inserted replaced
1346:175edf225f10 1347:142d979bc738
1057 0xffffffff, /* 1111 1111 1111 1111 1111 1111 1111 1111 */ 1057 0xffffffff, /* 1111 1111 1111 1111 1111 1111 1111 1111 */
1058 0xffffffff, /* 1111 1111 1111 1111 1111 1111 1111 1111 */ 1058 0xffffffff, /* 1111 1111 1111 1111 1111 1111 1111 1111 */
1059 0xffffffff /* 1111 1111 1111 1111 1111 1111 1111 1111 */ 1059 0xffffffff /* 1111 1111 1111 1111 1111 1111 1111 1111 */
1060 }; 1060 };
1061 1061
1062 static uint32_t *map[] = { uri, args, html, refresh }; 1062 /* " ", %00-%1F */
1063
1064 static uint32_t memcached[] = {
1065 0xffffffff, /* 1111 1111 1111 1111 1111 1111 1111 1111 */
1066
1067 /* ?>=< ;:98 7654 3210 /.-, +*)( '&%$ #"! */
1068 0x00000001, /* 0000 0000 0000 0000 0000 0000 0000 0001 */
1069
1070 /* _^]\ [ZYX WVUT SRQP ONML KJIH GFED CBA@ */
1071 0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */
1072
1073 /* ~}| {zyx wvut srqp onml kjih gfed cba` */
1074 0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */
1075
1076 0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */
1077 0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */
1078 0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */
1079 0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */
1080 };
1081
1082 static uint32_t *map[] = { uri, args, html, refresh, memcached };
1063 1083
1064 1084
1065 escape = map[type]; 1085 escape = map[type];
1066 1086
1067 if (dst == NULL) { 1087 if (dst == NULL) {