[nginx] svn commit: r4947 - trunk/src/http/modules
ru at nginx.com
ru at nginx.com
Thu Dec 6 21:22:58 UTC 2012
Author: ru
Date: 2012-12-06 21:22:58 +0000 (Thu, 06 Dec 2012)
New Revision: 4947
URL: http://trac.nginx.org/nginx/changeset/4947/nginx
Log:
Xslt: prevented infinite loop.
If XSLT transformation failed and error 500 was handled in the same
location, an infinite loop occured that exhausted the stack.
Modified:
trunk/src/http/modules/ngx_http_xslt_filter_module.c
Modified: trunk/src/http/modules/ngx_http_xslt_filter_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_xslt_filter_module.c 2012-12-03 16:00:26 UTC (rev 4946)
+++ trunk/src/http/modules/ngx_http_xslt_filter_module.c 2012-12-06 21:22:58 UTC (rev 4947)
@@ -307,7 +307,7 @@
ctx->done = 1;
if (b == NULL) {
- return ngx_http_filter_finalize_request(r, NULL,
+ return ngx_http_filter_finalize_request(r, &ngx_http_xslt_filter_module,
NGX_HTTP_INTERNAL_SERVER_ERROR);
}
@@ -315,7 +315,7 @@
if (cln == NULL) {
ngx_free(b->pos);
- return ngx_http_filter_finalize_request(r, NULL,
+ return ngx_http_filter_finalize_request(r, &ngx_http_xslt_filter_module,
NGX_HTTP_INTERNAL_SERVER_ERROR);
}
More information about the nginx-devel
mailing list