From 6c3dae4a03307814a13bc087f961b52f681ff056 Mon Sep 17 00:00:00 2001 From: nsmle Date: Sat, 20 Apr 2024 09:52:17 +0700 Subject: [PATCH] Fix merge 'pgrimaud:master into master' conflict --- src/Instagram/Auth/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instagram/Auth/Login.php b/src/Instagram/Auth/Login.php index a9610e5..00d5929 100644 --- a/src/Instagram/Auth/Login.php +++ b/src/Instagram/Auth/Login.php @@ -148,7 +148,7 @@ public function withCookies(array $session): CookieJar preg_match('/\"csrf_token\":\"(.*?)\"/', $html, $matches); if (isset($matches[1])) { - $data = json_decode(json_decode("{{$matches[0]}}")->raw); + $data = $matches[1]; if (!isset($data->config->viewer) && !isset($data->config->viewerId)) { throw new InstagramAuthException('Please login with instagram credentials.');