avoid double amp escaping

master
Joey Hess 2012-03-13 17:48:27 -04:00
parent 5a7f1ebcd4
commit 5b5731182f
1 changed files with 2 additions and 2 deletions

View File

@ -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;