avoid double amp escaping
parent
5a7f1ebcd4
commit
5b5731182f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue