aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-13 17:48:27 -0400
committerJoey Hess <joey@kitenet.net>2012-03-13 17:55:47 -0400
commit5b5731182f99808f533d691408dc651a435be43b (patch)
treed503b962293d0f1bf005ff1c9ac90b0fb98cf95b /IkiWiki
parent5a7f1ebcd4d00bb1ba163c9559435f6c0aa78fb4 (diff)
downloadikiwiki-5b5731182f99808f533d691408dc651a435be43b.tar
ikiwiki-5b5731182f99808f533d691408dc651a435be43b.tar.gz
avoid double amp escaping
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/osm.pm4
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&amp;lon=$lon&amp;zoom=$zoom";
+ $href =~ s!&!&amp;!g;
}
$pagestate{$page}{'osm'}{$map}{'waypoints'}{$name} = {
page => $page,
@@ -196,7 +197,6 @@ sub process_waypoint {
$output .= preprocess(%params);
}
if (!$hidden) {
- $href =~ s!&!&amp;!g;
$output .= "<a href=\"$href\"><img class=\"img\" src=\"$icon\" $alt /></a>";
}
return $output;