about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-28 05:32:14 +0000
committerEric Wong <e@80x24.org>2022-11-28 23:38:58 +0000
commit464c28e42bbbe54fc1d13629258eff31ecfc1689 (patch)
treea3ad51c7d6075067ee9ef54e65e5d619e19b8745 /lib/PublicInbox
parenta38db0188e264c08e39354d8945cf1e7ac35e708 (diff)
downloadpublic-inbox-464c28e42bbbe54fc1d13629258eff31ecfc1689.tar.gz
Users may wish to keep objstore and manifest files at
a higher level to prevent direct access via HTTP(S),
so those relative paths probably make sense.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/LeiMirror.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm
index e0a212de..ec2ed557 100644
--- a/lib/PublicInbox/LeiMirror.pm
+++ b/lib/PublicInbox/LeiMirror.pm
@@ -1055,7 +1055,7 @@ sub do_mirror { # via wq_io_do or public-inbox-clone
                         my ($k) = (split(/\./, $default))[0];
                         my $v = $lei->{opt}->{$k} // next;
                         $v = $default if $v eq '';
-                        $v = "$self->{dst}/$v" if $v !~ m!\A/!;
+                        $v = "$self->{dst}/$v" if $v !~ m!\A\.{0,2}/!;
                         $self->{"-$k"} = $v;
                 }
                 local $LIVE = {};