Mercurial > hg > nginx
comparison src/http/modules/ngx_http_xslt_filter_module.c @ 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 | 1a11e4a8877a |
children | 4a18bf1833a9 b5601d23b61e |
comparison
equal
deleted
inserted
replaced
4645:f329a1d2127b | 4646:959371df1806 |
---|---|
808 | 808 |
809 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module); | 809 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module); |
810 | 810 |
811 file = xmcf->dtd_files.elts; | 811 file = xmcf->dtd_files.elts; |
812 for (i = 0; i < xmcf->dtd_files.nelts; i++) { | 812 for (i = 0; i < xmcf->dtd_files.nelts; i++) { |
813 if (ngx_strcmp(file[i].name, &value[1].data) == 0) { | 813 if (ngx_strcmp(file[i].name, value[1].data) == 0) { |
814 xlcf->dtd = file[i].data; | 814 xlcf->dtd = file[i].data; |
815 return NGX_CONF_OK; | 815 return NGX_CONF_OK; |
816 } | 816 } |
817 } | 817 } |
818 | 818 |
882 | 882 |
883 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module); | 883 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module); |
884 | 884 |
885 file = xmcf->sheet_files.elts; | 885 file = xmcf->sheet_files.elts; |
886 for (i = 0; i < xmcf->sheet_files.nelts; i++) { | 886 for (i = 0; i < xmcf->sheet_files.nelts; i++) { |
887 if (ngx_strcmp(file[i].name, &value[1].data) == 0) { | 887 if (ngx_strcmp(file[i].name, value[1].data) == 0) { |
888 sheet->stylesheet = file[i].data; | 888 sheet->stylesheet = file[i].data; |
889 goto found; | 889 goto found; |
890 } | 890 } |
891 } | 891 } |
892 | 892 |