]> git.kaiwu.me - nginx.git/commitdiff
Merge of r4647: xslt reuse.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Jul 2012 15:39:28 +0000 (15:39 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Jul 2012 15:39:28 +0000 (15:39 +0000)
Fixed the reuse of parsed DTDs and XSLTs.

Patch by Kuramoto Eiji.

src/http/modules/ngx_http_xslt_filter_module.c

index 4309a4489081dd322a775fc04cfbca1803bfcd21..9b0354b2ee69e66407bd8964f2891334c955aa68 100644 (file)
@@ -810,7 +810,7 @@ ngx_http_xslt_entities(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 
     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 @@ ngx_http_xslt_stylesheet(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 
     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;
         }