]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-solr: Fix default_ns parameter parsing
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Wed, 27 Jun 2018 14:27:15 +0000 (17:27 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 28 Jun 2018 15:48:37 +0000 (15:48 +0000)
This version makes it possible to specify a value to the setting as
well.

src/plugins/fts-solr/fts-solr-plugin.c

index f6daec0c5aaa6bc448c4f280db3bfeaa532f85fe..6c34a02894d2be3251ac2cbf0e96cbd8ba3f8904 100644 (file)
@@ -32,7 +32,7 @@ fts_solr_plugin_init_settings(struct mail_user *user,
                        set->debug = TRUE;
                } else if (strcmp(*tmp, "use_libfts") == 0) {
                        set->use_libfts = TRUE;
-               } 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 {