Skip to content

Commit

Permalink
Refer to Gatherer via https to avoid Chrome browser insecurity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bakert committed Sep 9, 2024
1 parent 39678af commit 4a798d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatherling/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ function printCardLink($card): void
$gathererName = preg_replace('/ /', ']+[', $card);
$gathererName = str_replace('/', ']+[', $gathererName);
echo '<span class="cardHoverImageWrapper">';
echo "<a href=\"http://gatherer.wizards.com/Pages/Search/Default.aspx?name=+[{$gathererName}]\" ";
echo "class=\"linkedCardName\" target=\"_blank\">{$card}<span class=\"linkCardHoverImage\"><p class=\"crop\" style=\"background-image: url(http://gatherer.wizards.com/Handlers/Image.ashx?name={$card}&type=card\"><img alt=\"{$card}\" src=\"http://gatherer.wizards.com/Handlers/Image.ashx?name={$card}&type=card\"></p></span></a></span>";
echo "<a href=\"https://gatherer.wizards.com/Pages/Search/Default.aspx?name=+[{$gathererName}]\" ";
echo "class=\"linkedCardName\" target=\"_blank\">{$card}<span class=\"linkCardHoverImage\"><p class=\"crop\" style=\"background-image: url(https://gatherer.wizards.com/Handlers/Image.ashx?name={$card}&type=card\"><img alt=\"{$card}\" src=\"https://gatherer.wizards.com/Handlers/Image.ashx?name={$card}&type=card\"></p></span></a></span>";
}

function image_tag($filename, $extra_attr = null): string
Expand Down

0 comments on commit 4a798d3

Please sign in to comment.