From: Joey Hess Date: Thu, 3 Apr 2008 20:37:05 +0000 (-0400) Subject: need to handle urls to images the same X-Git-Tag: 2.42~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04e74678070932cdcc42e8e2f9f9c70ce4dcc762;p=ikiwiki.git need to handle urls to images the same Also, simplified finding the url to the top of the site. --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 8f7cd826e..1b12144e8 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -389,18 +389,18 @@ sub absolute_urls ($$) { #{{{ my $url=$baseurl; $url=~s/[^\/]+$//; - # what is the non path part of the url? (need it for relative url's starting with / + # what is the non path part of the url? my $top_uri = URI->new($url); - $top_uri->path_query("/"); # reset the path + $top_uri->path_query(""); # reset the path my $urltop = $top_uri->as_string; - $urltop=~s/\/*$//; $content=~s/( Thu, 03 Apr 2008 02:35:39 -0400