about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index 228de4ff..26ac298e 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -510,6 +510,10 @@ sub _fill_ei ($$) {
         my $pfx = "extindex.$name";
         my $d = $self->{"$pfx.topdir"} // return;
         -d $d or return;
+        if (index($d, "\n") >= 0) {
+                warn "E: `$d' must not contain `\\n'\n";
+                return;
+        }
         my $es = PublicInbox::ExtSearch->new($d);
         for my $k (qw(indexlevel indexsequentialshard)) {
                 my $v = _one_val($self, $pfx, $k) // next;