From 3d115e78e79501e4a4310b9747f5fd66b20570d5 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Sat, 5 Dec 2020 21:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E7=99=BB=E5=BD=95=EF=BC=8C=E5=BE=85=E7=BA=BF=E4=B8=8A?= =?UTF-8?q?=E6=B5=8B=E8=AF=953?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Library/OAuth.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 */