Skip to content

Commit

Permalink
fts-solr: Properly URL encode quotes for empty string
Browse files Browse the repository at this point in the history
Invalid URL encoding of empty string made Solr server give 400 Bad
Request HTTP responses for searches like SEARCH HEADER FROM "".
  • Loading branch information
mrannanj authored and cmouse committed Aug 7, 2018
1 parent 280c8a5 commit cc92bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/fts-solr/fts-backend-solr.c
Expand Up @@ -165,7 +165,7 @@ static void solr_quote_http(string_t *dest, const char *str)
if (str[0] != '\0')
http_url_escape_param(dest, solr_escape(str));
else
str_append(dest, "\"\"");
str_append(dest, "%22%22");
}

static struct fts_backend *fts_backend_solr_alloc(void)
Expand Down

0 comments on commit cc92bce

Please sign in to comment.