Skip to content

Commit

Permalink
Fixed non-ASCII character encoding issue in the BattleTag
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinko authored and Tinko committed Nov 14, 2017
1 parent 8d561dc commit 6469a50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ga_bnet/connect.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function getUrl($region) {
'forumuid' => $_G['uid'],
'oauth_token' => htmlspecialchars($_SESSION["ga_bnet"]["tokenInfo"]["token"]),
'bnet_id' => intval($_SESSION["ga_bnet"]["accInfo"]["id"]),
'battletag' => htmlspecialchars($_SESSION["ga_bnet"]["accInfo"]["battletag"]),
'battletag' => diconv(htmlspecialchars($_SESSION["ga_bnet"]["accInfo"]["battletag"]), 'UTF-8'),
'bindtime' => TIMESTAMP,
'region' => $_SESSION["ga_bnet"]["region"],
);
Expand Down Expand Up @@ -151,7 +151,7 @@ function getUrl($region) {
'forumuid' => $rs['uid'],
'oauth_token' => htmlspecialchars($_SESSION["ga_bnet"]["tokenInfo"]["token"]),
'bnet_id' => intval($_SESSION["ga_bnet"]["accInfo"]["id"]),
'battletag' => htmlspecialchars($_SESSION["ga_bnet"]["accInfo"]["battletag"]),
'battletag' => diconv(htmlspecialchars($_SESSION["ga_bnet"]["accInfo"]["battletag"]), 'UTF-8'),
'bindtime' => TIMESTAMP,
'region' => $_SESSION["ga_bnet"]["region"],
);
Expand Down Expand Up @@ -224,7 +224,7 @@ function getUrl($region) {
'forumuid' => $uid,
'oauth_token' => htmlspecialchars($_SESSION["ga_bnet"]["tokenInfo"]["token"]),
'bnet_id' => intval($_SESSION["ga_bnet"]["accInfo"]["id"]),
'battletag' => htmlspecialchars($_SESSION["ga_bnet"]["accInfo"]["battletag"]),
'battletag' => diconv(htmlspecialchars($_SESSION["ga_bnet"]["accInfo"]["battletag"]), 'UTF-8'),
'bindtime' => TIMESTAMP,
'region' => $_SESSION["ga_bnet"]["region"],
);
Expand Down

0 comments on commit 6469a50

Please sign in to comment.