diff options
author | Eric Wong <e@80x24.org> | 2021-05-06 02:22:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-05-06 16:56:43 +0000 |
commit | 473b069c61b3d4936e2c5ed46fd7d348c9f6d1b7 (patch) | |
tree | 221ef389b49059d4f82e5257fb4acf38dd397097 /lib/PublicInbox/LeiSavedSearch.pm | |
parent | aa6ad348fea8a7affb1ecf025c297983d0e061cd (diff) | |
download | public-inbox-473b069c61b3d4936e2c5ed46fd7d348c9f6d1b7.tar.gz |
We use trailing slashes internally, but should not increase visual noise for users by exposing them in config files or DB storage (and shell completion/listings). This fixes a long-standing bug in $lei->rel2abs that prevented absolute paths from being canonicalized.
Diffstat (limited to 'lib/PublicInbox/LeiSavedSearch.pm')
-rw-r--r-- | lib/PublicInbox/LeiSavedSearch.pm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm index 92ced28b..01b987d1 100644 --- a/lib/PublicInbox/LeiSavedSearch.pm +++ b/lib/PublicInbox/LeiSavedSearch.pm @@ -40,8 +40,6 @@ sub lss_dir_for ($$;$) { } else { # can't use Cwd::abs_path since dirname($$dstref) may not exist $$dstref = $lei->rel2abs($$dstref); - # Maildirs have trailing '/' internally - $$dstref .= '/' if -d $$dstref; $$dstref =~ tr!/!/!s; @n = ($$dstref =~ m{([^/]+)/*\z}); # basename } |