comparison src/core/ngx_string.h @ 320:95183808f549 NGINX_0_6_4

nginx 0.6.4 *) Security: the "msie_refresh" directive allowed XSS. Thanks to Maxim Boguk. *) Change: the "proxy_store" and "fastcgi_store" directives were changed. *) Feature: the "proxy_store_access" and "fastcgi_store_access" directives. *) Bugfix: nginx did not work on Solaris/sparc64 if it was built by Sun Studio. Thanks to Andrei Nigmatulin. *) Workaround: for Sun Studio 12. Thanks to Jiang Hong.
author Igor Sysoev <http://sysoev.ru>
date Tue, 17 Jul 2007 00:00:00 +0400
parents 9b7db0df50f0
children d16d691432c9
comparison
equal deleted inserted replaced
319:6ccd0af7f704 320:95183808f549
11 #include <ngx_config.h> 11 #include <ngx_config.h>
12 #include <ngx_core.h> 12 #include <ngx_core.h>
13 13
14 14
15 typedef struct { 15 typedef struct {
16 size_t len; 16 size_t len;
17 u_char *data; 17 u_char *data;
18 } ngx_str_t; 18 } ngx_str_t;
19 19
20 20
21 typedef struct { 21 typedef struct {
22 ngx_str_t key; 22 ngx_str_t key;
23 ngx_str_t value; 23 ngx_str_t value;
24 } ngx_keyval_t; 24 } ngx_keyval_t;
25
26
27 typedef struct {
28 unsigned len:29;
29
30 unsigned valid:1;
31 unsigned no_cachable:1;
32 unsigned not_found:1;
33
34 u_char *data;
35 } ngx_variable_value_t;
25 36
26 37
27 #define ngx_string(str) { sizeof(str) - 1, (u_char *) str } 38 #define ngx_string(str) { sizeof(str) - 1, (u_char *) str }
28 #define ngx_null_string { 0, NULL } 39 #define ngx_null_string { 0, NULL }
29 40
140 151
141 152
142 #define NGX_ESCAPE_URI 0 153 #define NGX_ESCAPE_URI 0
143 #define NGX_ESCAPE_ARGS 1 154 #define NGX_ESCAPE_ARGS 1
144 #define NGX_ESCAPE_HTML 2 155 #define NGX_ESCAPE_HTML 2
156 #define NGX_ESCAPE_REFRESH 3
145 157
146 #define NGX_UNESCAPE_URI 1 158 #define NGX_UNESCAPE_URI 1
147 159
148 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size, 160 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size,
149 ngx_uint_t type); 161 ngx_uint_t type);