From ae31a9e82c34727ba15e98f6ec63481cb8429606 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 19 Feb 2021 05:09:55 -0700 Subject: 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. --- lib/PublicInbox/URIimap.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox') 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); -- cgit v1.2.3-24-ge0c7