]> git.kaiwu.me - nginx.git/commitdiff
nginx-0.1.10-RELEASE import release-0.1.10
authorIgor Sysoev <igor@sysoev.ru>
Fri, 26 Nov 2004 09:33:59 +0000 (09:33 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 26 Nov 2004 09:33:59 +0000 (09:33 +0000)
    *) Bugfix: if the request without arguments contains "//", "/./",
       "/../" or "%XX" then the lost character in the request line was
       lost; the bug had appeared in 0.1.9.

    *) Bugfix: the fix in 0.1.9 for the files bigger than 2G on Linux did
       not work.

docs/xml/nginx/changes.xml
src/core/nginx.h
src/core/ngx_config.h
src/http/ngx_http_parse.c
src/os/unix/ngx_linux_config.h

index f460dbbacfa7c2aab32a4fbd0c2aadc84d89089a..7d2c1c2472a09eaa58dd3550694991846b02b91a 100644 (file)
@@ -6,6 +6,34 @@
             title="nginx">
 
 
+<changes ver="0.1.10" date="26.11.2004">
+
+<change type="bugfix">
+<para lang="ru">
+ÅÓÌÉ × ÚÁÐÒÏÓÅ ÂÅÚ ÁÒÇÕÍÅÎÔÏ× ÅÓÔØ "//", "/./", "/../" ÉÌÉ "%XX",
+ÔÏ ÔÅÒÑÌÓÑ ÐÏÓÌÅÄÎÉÊ ÓÉÍ×ÏÌ × ÓÔÒÏËÅ ÚÁÐÒÏÓÁ;
+ÏÛÉÂËÁ ÐÏÑ×ÉÌÁÓØ × 0.1.9.
+</para>
+<para lang="en">
+if the request without arguments contains "//", "/./", "/../" or "%XX"
+then the lost character in the request line was lost;
+bug appeared in 0.1.9.
+</para>
+</change>
+
+<change type="bugfix">
+<para lang="ru">
+ÉÓÐÒÁ×ÌÅÎÉÅ × ×ÅÒÓÉÉ 0.1.9 ÄÌÑ ÆÁÊÌÏ× ÂÏÌØÛÅ ÎÁ Linux ÎÅ ÒÁÂÏÔÁÌÏ.
+</para>
+<para lang="en">
+the fix in 0.1.9 for the files bigger than 2G on Linux
+did not work.
+</para>
+</change>
+
+</changes>
+
+
 <changes ver="0.1.9" date="25.11.2004">
 
 <change type="bugfix">
index d737d6b6357a053451a08282f342f4cb0f262b0e..9b61fc959ec591683d1f6e57fe03fd5319915ca0 100644 (file)
@@ -8,7 +8,7 @@
 #define _NGINX_H_INCLUDED_
 
 
-#define NGINX_VER          "nginx/0.1.9"
+#define NGINX_VER          "nginx/0.1.10"
 
 #define NGINX_VAR          "NGINX"
 #define NGX_NEWPID_EXT     ".newbin"
index 916b1b514b30d2e7fb558abf92a562665e2db983..7d4463b09949548aecd30a59a8064339a24e04c2 100644 (file)
 #include <ngx_auto_headers.h>
 
 
-#if ((__GNU__ == 2) && (__GNUC_MINOR__ < 8))
-#define NGX_MAX_UINT32_VALUE  0xffffffffLL
-#else
-#define NGX_MAX_UINT32_VALUE  0xffffffff
-#endif
-
-
 #if defined __DragonFly__ && !defined __FreeBSD__
 #define __FreeBSD__        4
 #define __FreeBSD_version  480101
@@ -135,4 +128,11 @@ typedef long               ngx_flag_t;
 */
 
 
+#if ((__GNU__ == 2) && (__GNUC_MINOR__ < 8))
+#define NGX_MAX_UINT32_VALUE  0xffffffffLL
+#else
+#define NGX_MAX_UINT32_VALUE  0xffffffff
+#endif
+
+
 #endif /* _NGX_CONFIG_H_INCLUDED_ */
index a4e7d80451d26726ae15f9d0ba39a73b880a4007..96ed49c742725ef4cf09b6abff9cd2f0d3cb801f 100644 (file)
@@ -686,7 +686,7 @@ ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r)
 
     ch = *p++;
 
-    while (p < r->uri_end && r->args_start == NULL) {
+    while (p <= r->uri_end && r->args_start == NULL) {
 
         /*
          * we use "ch = *p++" inside the cycle but this operation is safe
index 620b59d8c3bef67d24afbb999367c0b8f5379315..84eaf5c6acfa2d27487518ecbec92b2eef1b947e 100644 (file)
@@ -61,7 +61,7 @@
 #include <sys/sendfile.h>
 #else
 extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size);
-#define NGX_SENDFILE_LIMIT  (NGX_MAX_UINT32_VALUE + 1)
+#define NGX_SENDFILE_LIMIT  0x80000000
 #endif