]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-solr: Don't double-escape headers.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 9 Apr 2017 12:48:59 +0000 (15:48 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 9 Apr 2017 19:19:11 +0000 (22:19 +0300)
src/plugins/fts-solr/fts-backend-solr.c

index 0ffc717585a48e1ea24776b524ebf764f639fbf9..259bdb6500cdd7eea627657e742f4f626b88f7fb 100644 (file)
@@ -342,7 +342,8 @@ fts_backend_solr_doc_close(struct solr_fts_backend_update_context *ctx)
        }
        array_foreach_modifiable(&ctx->fields, field) {
                str_printfa(ctx->cmd, "<field name=\"%s\">", field->key);
-               xml_encode_data(ctx->cmd, str_data(field->value), str_len(field->value));
+               /* the values are already xml-escaped */
+               str_append_str(ctx->cmd, field->value);
                str_append(ctx->cmd, "</field>");
                str_truncate(field->value, 0);
        }