comparison src/core/ngx_string.h @ 34:aab2ea7c0458 NGINX_0_1_17

nginx 0.1.17 *) Change: the ngx_http_rewrite_module was rewritten from the scratch. Now it is possible to redirect, to return the error codes, to check the variables and referrers. The directives can be used inside locations. The redirect directive was canceled. *) Feature: the ngx_http_geo_module. *) Feature: the proxy_set_x_var and fastcgi_set_var directives. *) Bugfix: the location configuration with "=" modifier may be used in another location. *) Bugfix: the correct content type was set only for requests that use small caps letters in extension. *) Bugfix: if the proxy_pass or fastcgi_pass directives were set in the location, and access was denied, and the error was redirected to a static page, then the segmentation fault occurred. *) Bugfix: if in a proxied "Location" header was a relative URL, then a host name and a slash were added to them; bug appeared in 0.1.14. *) Bugfix: the system error message was not logged on Linux.
author Igor Sysoev <http://sysoev.ru>
date Thu, 03 Feb 2005 00:00:00 +0300
parents 7ca9bdc82b3f
children 41ccba1aba45
comparison
equal deleted inserted replaced
33:27f09a550803 34:aab2ea7c0458
70 /* msvc and icc compile memcmp() to the inline loop */ 70 /* msvc and icc compile memcmp() to the inline loop */
71 #define ngx_memcmp memcmp 71 #define ngx_memcmp memcmp
72 72
73 73
74 u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n); 74 u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n);
75 u_char *ngx_pstrdup(ngx_pool_t *pool, ngx_str_t *src);
75 u_char *ngx_sprintf(u_char *buf, const char *fmt, ...); 76 u_char *ngx_sprintf(u_char *buf, const char *fmt, ...);
76 u_char *ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...); 77 u_char *ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...);
77 u_char *ngx_vsnprintf(u_char *buf, size_t max, const char *fmt, va_list args); 78 u_char *ngx_vsnprintf(u_char *buf, size_t max, const char *fmt, va_list args);
78 79
79 ngx_int_t ngx_rstrncmp(u_char *s1, u_char *s2, size_t n); 80 ngx_int_t ngx_rstrncmp(u_char *s1, u_char *s2, size_t n);
91 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src); 92 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src);
92 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src); 93 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src);
93 94
94 95
95 #define NGX_ESCAPE_URI 0 96 #define NGX_ESCAPE_URI 0
96 #define NGX_ESCAPE_HTML 1 97 #define NGX_ESCAPE_ARGS 1
98 #define NGX_ESCAPE_HTML 2
97 99
98 ngx_uint_t ngx_escape_uri(u_char *dst, u_char *src, size_t size, 100 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size,
99 ngx_uint_t type); 101 ngx_uint_t type);
100 102
101 103
102 #define ngx_qsort qsort 104 #define ngx_qsort qsort
103 105
104 106