]> Sergey Matveev's repositories - public-inbox.git/commitdiff
feed: call URI->as_string explicitly
authorEric Wong <e@80x24.org>
Mon, 28 Apr 2014 21:46:04 +0000 (21:46 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Apr 2014 21:46:04 +0000 (21:46 +0000)
Implicit string conversion is more confusing.

lib/PublicInbox/Feed.pm

index d2bdea0d685886437ea70cbf83560cbdf9f82c63..87b5b2a937469929aebbd190ccda866185423aa6 100644 (file)
@@ -195,7 +195,7 @@ sub get_feedopts {
                if (ref($cgi) eq 'CGI') {
                        $base = $cgi->url(-base);
                } else {
-                       $base = "${$cgi->base}";
+                       $base = $cgi->base->as_string;
                        $base =~ s!/\z!!;
                }
                $url_base = $path_info;