]> git.kaiwu.me - nginx.git/commitdiff
nginx-0.3.51-RELEASE import release-0.3.51
authorIgor Sysoev <igor@sysoev.ru>
Fri, 30 Jun 2006 12:19:32 +0000 (12:19 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 30 Jun 2006 12:19:32 +0000 (12:19 +0000)
    *) Bugfix: the "<" symbols might disappeared some conditions in the
       SSI; the bug had appeared in 0.3.50.

docs/xml/nginx/changes.xml
src/core/nginx.h
src/http/modules/ngx_http_charset_filter_module.c
src/http/modules/ngx_http_ssi_filter_module.c
src/http/ngx_http_upstream.c

index 879da4f147fb32d714df86d3122ce8f895ac8800..635851b6a41e2e66469cc2344e360de27e53bd45 100644 (file)
@@ -9,6 +9,22 @@
 <title lang="en">nginx changelog</title>
 
 
+<changes ver="0.3.51" date="30.06.2006">
+
+<change type="bugfix">
+<para lang="ru">
+ÐÒÉ ÎÅËÏÔÏÒÙÈ ÕÓÌÏ×ÉÑÈ × SSI ÍÏÇ ÐÒÏÐÁÄÁÔØ ÓÉÍ×ÏÌÙ "&lt;";
+ÏÛÉÂËÁ ÐÏÑ×ÉÌÁÓØ × 0.3.50.
+</para>
+<para lang="en">
+the "&lt;" symbols might disappeared some conditions in the SSI;
+bug appeared in 0.3.50.
+</para>
+</change>
+
+</changes>
+
+
 <changes ver="0.3.50" date="28.06.2006">
 
 <change type="change">
@@ -48,7 +64,7 @@ and FastCGI mode.
 
 <change type="bugfix">
 <para lang="ru">
-ÓÉÍ×ÏÌ "\" × ÐÁÒÁÈ "\"" É "\'" × SSI ËÏÍÁÎÄÁÈ ÕÂÉÒÁÌÓÑ ÔÏÌØËÏ, ÅÓÌÉ 
+ÓÉÍ×ÏÌ "\" × ÐÁÒÁÈ "\"" É "\'" × SSI ËÏÍÁÎÄÁÈ ÕÂÉÒÁÌÓÑ, ÔÏÌØËÏ ÅÓÌÉ 
 ÔÁËÖÅ ÉÓÐÏÌØÚÏ×ÁÌÓÑ ÓÉÍ×ÏÌ "$".
 </para>
 <para lang="en">
@@ -71,7 +87,7 @@ in the SSI after inclusion.
 <change type="bugfix">
 <para lang="ru">
 ÅÓÌÉ × ÚÁÇÏÌÏ×ËÅ ÏÔ×ÅÔÁ ÂÙÌÁ ÓÔÒÏËÁ <nobr>"Content-Length: 0",</nobr>
-ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÎÅÂÕÆÅÒÉÚÉÒÏ×ÁÎÎÏÇÏ ÐÒÏËÓÉÒÏ×ÁÎÉÉ ÎÅ ÚÁËÒÙ×ÁÌÏÓØ ÓÏÅÄÉÎÅÎÉÅ
+ÔÏ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÎÅÂÕÆÅÒÉÚÉÒÏ×ÁÎÎÏÇÏ ÐÒÏËÓÉÒÏ×ÁÎÉÉ ÎÅ ÚÁËÒÙ×ÁÌÏÓØ ÓÏÅÄÉÎÅÎÉÅ
 Ó ËÌÉÅÎÔÏÍ.
 </para>
 <para lang="en">
index 834a4c8953687eff60a9c6905c41cc8b59ee47cd..91b6af2219eef574903c76291e75404dcd613471 100644 (file)
@@ -8,7 +8,7 @@
 #define _NGINX_H_INCLUDED_
 
 
-#define NGINX_VER          "nginx/0.3.50"
+#define NGINX_VER          "nginx/0.3.51"
 
 #define NGINX_VAR          "NGINX"
 #define NGX_OLDPID_EXT     ".oldbin"
index 635e6c52158377a3d4ac1a865f37368234872ef0..b467e4dc27e46440729ecc10d6e0a92c399de8db 100644 (file)
@@ -217,7 +217,7 @@ ngx_http_charset_header_filter(ngx_http_request_t *r)
             if (charset == NGX_HTTP_NO_CHARSET) {
                 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
                               "unknown charset \"%V\" to override",
-                              &r->headers_out.override_charset);
+                              r->headers_out.override_charset);
 
                 return ngx_http_next_header_filter(r);
             }
index 63c2dd138d2a20350c9d46308d5b930c31c2395b..5a65a03e894221885266a2e2c70cf9c45374c774 100644 (file)
@@ -942,7 +942,9 @@ ngx_http_ssi_parse(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx)
         case ssi_sharp_state:
             switch (ch) {
             case '#':
-                ctx->saved = 0;
+                if (p - ctx->pos < 4) {
+                    ctx->saved = 0;
+                }
                 looked = 0;
                 state = ssi_precommand_state;
                 break;
index cf9d27b709de4d1e8a0948f9757948d048820e59..a8c557a6e7198b1d8a6ff4cb911392211f36115d 100644 (file)
@@ -1273,6 +1273,7 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
                 if (clf->fd == r->request_body->temp_file->file.fd) {
                     cl->handler(clf);
                     cl->handler = NULL;
+                    r->request_body->temp_file->file.fd = NGX_INVALID_FILE;
                     break;
                 }
             }