Skip to content

Commit

Permalink
fts-solr: Fix default_ns parameter parsing
Browse files Browse the repository at this point in the history
This version makes it possible to specify a value to the setting as
well.
  • Loading branch information
mrannanj authored and cmouse committed Aug 7, 2018
1 parent ec4592e commit 280c8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/fts-solr/fts-solr-plugin.c
Expand Up @@ -34,7 +34,7 @@ fts_solr_plugin_init_settings(struct mail_user *user,
set->use_libfts = TRUE;
} else if (strcmp(*tmp, "break-imap-search") == 0) {
/* for backwards compatibility */
} else if (strcmp(*tmp, "default_ns=") == 0) {
} else if (str_begins(*tmp, "default_ns=")) {
set->default_ns_prefix =
p_strdup(user->pool, *tmp + 11);
} else {
Expand Down

0 comments on commit 280c8a5

Please sign in to comment.