diff options
author | Joey Hess <joey@kitenet.net> | 2012-03-13 17:48:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-03-13 17:55:47 -0400 |
commit | 5b5731182f99808f533d691408dc651a435be43b (patch) | |
tree | d503b962293d0f1bf005ff1c9ac90b0fb98cf95b /IkiWiki | |
parent | 5a7f1ebcd4d00bb1ba163c9559435f6c0aa78fb4 (diff) | |
download | ikiwiki-5b5731182f99808f533d691408dc651a435be43b.tar ikiwiki-5b5731182f99808f533d691408dc651a435be43b.tar.gz |
avoid double amp escaping
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/osm.pm | 4 |
1 files 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 .= "<a href=\"$href\"><img class=\"img\" src=\"$icon\" $alt /></a>"; } return $output; |