From 04e74678070932cdcc42e8e2f9f9c70ce4dcc762 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Apr 2008 16:37:05 -0400 Subject: [PATCH] need to handle urls to images the same Also, simplified finding the url to the top of the site. --- IkiWiki/Plugin/inline.pm | 10 +++++----- debian/changelog | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) 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 -- 2.26.2