Skip to content

Commit

Permalink
Encode gym name in link (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
michikrug authored and Obihoernchen committed Feb 21, 2018
1 parent 098606a commit 00d4aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/js/gym.maps.js
Expand Up @@ -133,7 +133,7 @@ function setGymDetails(gym) {
imgurl = imgurl.replace(/^http:\/\//i, 'https://');
$('#gym_details_template #circleImage').css('background', 'url(' + imgurl + ') no-repeat center');
$('#gym_details_template #gymName').html(gym.gymDetails.gymInfos.name);
$('#gym_details_template #gymHistory a').attr('href', 'gymhistory?name=' + gym.gymDetails.gymInfos.name);
$('#gym_details_template #gymHistory a').attr('href', 'gymhistory?name=' + encodeURIComponent(gym.gymDetails.gymInfos.name));
$('#gym_details_template #gymDescription').html(gym.gymDetails.gymInfos.description);
$('#gym_details_template #gymDefenders').html(gym.infoWindow);
$('#gym_details_template #gymPrestigeDisplay').html(gym.gymDetails.gymInfos.points);
Expand Down

0 comments on commit 00d4aed

Please sign in to comment.