diff --git a/app/Library/OAuth.php b/app/Library/OAuth.php index e885ea43..1543c937 100644 --- a/app/Library/OAuth.php +++ b/app/Library/OAuth.php @@ -56,6 +56,13 @@ abstract class OAuth public function checkState($state) { + /** + * 注意事项: + * callback中的state参数并未做encode处理,参数中含有"+" + * 获取参数的时候却自动做了decode处理,"+"变成了空格 + */ + $state = str_replace(' ', '+', $state); + /** * @var $crypt Crypt */