Mercurial > hg > nginx
changeset 4646:959371df1806
Fixed the reuse of parsed DTDs and XSLTs.
Patch by Kuramoto Eiji.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 24 May 2012 07:35:12 +0000 |
parents | f329a1d2127b |
children | a321eadcb16c |
files | src/http/modules/ngx_http_xslt_filter_module.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_xslt_filter_module.c Wed May 23 15:07:01 2012 +0000 +++ b/src/http/modules/ngx_http_xslt_filter_module.c Thu May 24 07:35:12 2012 +0000 @@ -810,7 +810,7 @@ file = xmcf->dtd_files.elts; for (i = 0; i < xmcf->dtd_files.nelts; i++) { - if (ngx_strcmp(file[i].name, &value[1].data) == 0) { + if (ngx_strcmp(file[i].name, value[1].data) == 0) { xlcf->dtd = file[i].data; return NGX_CONF_OK; } @@ -884,7 +884,7 @@ file = xmcf->sheet_files.elts; for (i = 0; i < xmcf->sheet_files.nelts; i++) { - if (ngx_strcmp(file[i].name, &value[1].data) == 0) { + if (ngx_strcmp(file[i].name, value[1].data) == 0) { sheet->stylesheet = file[i].data; goto found; }