diff options
author | Joey Hess <joey@kitenet.net> | 2013-06-23 14:14:52 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-06-23 14:14:52 -0400 |
commit | c5f9b016621d20766196a0859508a083a486b4cb (patch) | |
tree | 10b6f177f920414298f56aa5faf87e13e1c89171 /IkiWiki | |
parent | b8d65da266e45e81356dcf60b28209b75a437973 (diff) | |
download | ikiwiki-c5f9b016621d20766196a0859508a083a486b4cb.tar ikiwiki-c5f9b016621d20766196a0859508a083a486b4cb.tar.gz |
osm: Remove trailing slash from KML maps icon.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/osm.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index a7baa5f2b..c9650d014 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -192,6 +192,7 @@ sub process_waypoint { } } $icon = urlto($icon, $dest, 1); + $icon =~ s!/*$!!; # hack - urlto shouldn't be appending a slash in the first place $tag = '' unless $tag; register_rendered_files($map, $page, $dest); $pagestate{$page}{'osm'}{$map}{'waypoints'}{$name} = { |