Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitosha Labs <95742108+vitoshalabs@users.noreply.github.com>2022-11-11 13:40:31 +0300
committerGitHub <noreply@github.com>2022-11-11 13:40:31 +0300
commitc08e59033f09e3cee6b9408890bd2dfb2b3c80d5 (patch)
tree70b62b3894574214bbddf70d91ba099ae2b0c545
parente717bedc10f413421465c27632a1d6dc99503a7c (diff)
Use json_decode instead of GuzzleHttp\json_decode (#8773)
-rw-r--r--program/include/rcmail_oauth.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcmail_oauth.php b/program/include/rcmail_oauth.php
index 84e7402c1..c991b04a5 100644
--- a/program/include/rcmail_oauth.php
+++ b/program/include/rcmail_oauth.php
@@ -234,7 +234,7 @@ class rcmail_oauth
],
]);
- $data = \GuzzleHttp\json_decode($response->getBody(), true);
+ $data = json_decode($response->getBody(), true);
// auth success
if (!empty($data['access_token'])) {
@@ -272,7 +272,7 @@ class rcmail_oauth
],
]);
- $identity = \GuzzleHttp\json_decode($identity_response->getBody(), true);
+ $identity = json_decode($identity_response->getBody(), true);
foreach ($this->options['identity_fields'] as $field) {
if (isset($identity[$field])) {
@@ -378,7 +378,7 @@ class rcmail_oauth
'grant_type' => 'refresh_token',
],
]);
- $data = \GuzzleHttp\json_decode($response->getBody(), true);
+ $data = json_decode($response->getBody(), true);
// auth success
if (!empty($data['access_token'])) {