Skip to content

Commit

Permalink
Merge pull request #156 from tangrucheng/patch-1
Browse files Browse the repository at this point in the history
Update QRCode.php
  • Loading branch information
overtrue committed Nov 13, 2015
2 parents 19ed4d4 + c1308f5 commit ada84f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wechat/QRCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function card($card, $temporary = true, $expireSeconds = null)
*/
public function show($ticket)
{
return self::API_SHOW."?ticket={$ticket}";
return sprintf('%s?ticket=%s', self::API_SHOW, urlencode($ticket));
}

/**
Expand Down

0 comments on commit ada84f6

Please sign in to comment.