git 2.11 and earlier could not handle git directories with
newlines in them, nor does libgit2 support them.
Followup-to: d87dd0e679587043 ("config: reject `\n' in `inboxdir'")
my $pfx = "extindex.$name";
my $d = $self->{"$pfx.topdir"} // return;
-d $d or return;
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;
my $es = PublicInbox::ExtSearch->new($d);
for my $k (qw(indexlevel indexsequentialshard)) {
my $v = _one_val($self, $pfx, $k) // next;