diff options
author | Eric Wong <e@80x24.org> | 2021-02-19 05:09:55 -0700 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-19 19:25:25 +0000 |
commit | ae31a9e82c34727ba15e98f6ec63481cb8429606 (patch) | |
tree | 3bcf822f17bf572431b572de9fd326f8b6d7db88 /lib/PublicInbox | |
parent | bf367c9ac999e2e64a53ead083f68b171d9f6d35 (diff) | |
download | public-inbox-ae31a9e82c34727ba15e98f6ec63481cb8429606.tar.gz |
URIimap: overload "" to ->as_string
This interpolation is used by the upstream URI package and we rely on it elsewhere for HTTP(S) URIs, so save ourselves some surprises down the line.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/URIimap.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/URIimap.pm b/lib/PublicInbox/URIimap.pm index ab0908b7..db84ee5e 100644 --- a/lib/PublicInbox/URIimap.pm +++ b/lib/PublicInbox/URIimap.pm @@ -13,6 +13,7 @@ package PublicInbox::URIimap; use strict; use URI::Split qw(uri_split uri_join); # part of URI use URI::Escape qw(uri_unescape); +use overload '""' => \&as_string; my %default_ports = (imap => 143, imaps => 993); |