From 5b5731182f99808f533d691408dc651a435be43b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 13 Mar 2012 17:48:27 -0400 Subject: [PATCH] avoid double amp escaping --- IkiWiki/Plugin/osm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index 9f43e03e6..91f23ba1f 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -176,7 +176,8 @@ sub process_waypoint { zoom => $zoom, ); if (defined($destsources{htmlpage($map)})) { - $href = urlto($map,$page) . "?lat=$lat&lon=$lon&zoom=$zoom"; + $href = urlto($map,$page) . "?lat=$lat&lon=$lon&zoom=$zoom"; + $href =~ s!&!&!g; } $pagestate{$page}{'osm'}{$map}{'waypoints'}{$name} = { page => $page, @@ -196,7 +197,6 @@ sub process_waypoint { $output .= preprocess(%params); } if (!$hidden) { - $href =~ s!&!&!g; $output .= ""; } return $output;