Skip to content

Commit

Permalink
fts-solr: Don't double-escape headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Apr 9, 2017
1 parent b9ba6ce commit 161f40a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/fts-solr/fts-backend-solr.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 161f40a

Please sign in to comment.