FreeBSD Bugzilla – Attachment 147637 Details for
Bug 193891
[PATCH] www/nginx: add patches for 3rd-party upload module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nginx-1.6.2.patch
nginx-1.6.2.patch (text/plain), 2.29 KB, created by
mk
on 2014-09-24 13:19:39 UTC
(
hide
)
Description:
nginx-1.6.2.patch
Filename:
MIME Type:
Creator:
mk
Created:
2014-09-24 13:19:39 UTC
Size:
2.29 KB
patch
obsolete
>diff -ruN ../nginx.orig/Makefile ./Makefile >--- ../nginx.orig/Makefile 2014-09-19 03:27:24.000000000 +0200 >+++ ./Makefile 2014-09-24 14:57:31.000000000 +0200 >@@ -3,6 +3,7 @@ > > PORTNAME= nginx > PORTVERSION= 1.6.2 >+PORTREVISION= 1 > PORTEPOCH= 2 > CATEGORIES= www > MASTER_SITES= http://nginx.org/download/ >diff -ruN ../nginx.orig/files/extra-patch-ngx_http_upload_module.c ./files/extra-patch-ngx_http_upload_module.c >--- ../nginx.orig/files/extra-patch-ngx_http_upload_module.c 2013-09-11 17:00:04.000000000 +0200 >+++ ./files/extra-patch-ngx_http_upload_module.c 2014-09-24 14:56:24.000000000 +0200 >@@ -1,5 +1,5 @@ >---- ../nginx_upload_module-2.2.0/ngx_http_upload_module.c.orig 2010-09-27 21:54:15.000000000 +0300 >-+++ ../nginx_upload_module-2.2.0/ngx_http_upload_module.c 2013-09-10 17:40:59.570815847 +0300 >+--- ../nginx_upload_module-2.2.0/ngx_http_upload_module.c.orig 2010-09-27 18:54:15.000000000 +0000 >++++ ../nginx_upload_module-2.2.0/ngx_http_upload_module.c 2014-07-08 09:25:17.000000000 +0000 > @@ -50,7 +50,7 @@ > * State of multipart/form-data parser > */ >@@ -968,7 +968,7 @@ > + return NGX_CONF_OK; > + } > + >-+ *path = ngx_palloc(cf->pool, sizeof(ngx_http_upload_path_t)); >++ *path = ngx_pcalloc(cf->pool, sizeof(ngx_http_upload_path_t)); > + if(*path == NULL) { > + return NGX_CONF_ERROR; > + } >@@ -1600,7 +1600,19 @@ > upload_ctx->partial_content = 1; > } > } >-@@ -3436,8 +4545,8 @@ >+@@ -3353,6 +4462,11 @@ >+ >+ boundary_start_ptr += sizeof(BOUNDARY_STRING) - 1; >+ boundary_end_ptr = boundary_start_ptr + strcspn((char*)boundary_start_ptr, " ;\n\r"); >++ >++ if ((boundary_end_ptr - boundary_start_ptr) >= 2 && boundary_start_ptr[0] == '"' && *(boundary_end_ptr - 1) == '"') { >++ boundary_start_ptr++; >++ boundary_end_ptr--; >++ } >+ >+ if(boundary_end_ptr == boundary_start_ptr) { >+ ngx_log_debug0(NGX_LOG_DEBUG_CORE, upload_ctx->log, 0, >+@@ -3436,8 +4550,8 @@ > return NGX_ERROR; > } > >@@ -1611,7 +1623,7 @@ > { > return NGX_ERROR; > } >-@@ -3673,3 +4782,43 @@ >+@@ -3673,3 +4787,43 @@ > } > } /* }}} */ > >@@ -1655,4 +1667,3 @@ > + > + return NGX_ERROR; > +} /* }}} */ >- >--- nginx-1.6.2.patch ends here ---
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193891
: 147637