osm: Remove trailing slash from KML maps icon.

master
Joey Hess 2013-06-23 14:14:52 -04:00
parent b8d65da266
commit c5f9b01662
3 changed files with 4 additions and 0 deletions

View File

@ -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} = {

1
debian/changelog vendored
View File

@ -8,6 +8,7 @@ ikiwiki (3.20130519) UNRELEASED; urgency=low
* calendar: When there are multiple pages for a given day, they're
displayed in a popup on mouseover.
Thanks, Louis
* osm: Remove trailing slash from KML maps icon.
-- Joey Hess <joeyh@debian.org> Sun, 23 Jun 2013 14:02:01 -0400

View File

@ -30,3 +30,5 @@ index a7baa5f..c9650d0 100644
"""]]
I'm not writing this to a branch out of sheer shame of my misunderstanding. ;) There also may be a workaround that could be done in Nginx too. --[[anarcat]]
> [[applied|done]], but I'm not happy with this either --[[Joey]]