aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth/token_storage.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/token_storage.php')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/token_storage.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/token_storage.php b/phpBB/phpbb/auth/provider/oauth/token_storage.php
index ec54c07fea..de99f9bd31 100644
--- a/phpBB/phpbb/auth/provider/oauth/token_storage.php
+++ b/phpBB/phpbb/auth/provider/oauth/token_storage.php
@@ -87,7 +87,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
}
$data = array(
- 'user_id' => $this->user->data['user_id'],
+ 'user_id' => $this->user->data['user_id'],
'provider' => $this->service_name,
);
@@ -130,9 +130,9 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
$this->cachedToken = $token;
$data = array(
- 'user_id' => $this->user->data['user_id'],
- 'provider' => $this->service_name,
- 'oauth_token' => serialize($token),
+ 'user_id' => $this->user->data['user_id'],
+ 'provider' => $this->service_name,
+ 'oauth_token' => serialize($token),
);
if ($this->user->data['user_id'] == ANONYMOUS)
@@ -155,7 +155,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
}
$data = array(
- 'user_id' => $this->user->data['user_id'],
+ 'user_id' => $this->user->data['user_id'],
'provider' => $this->service_name,
);
@@ -187,7 +187,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
$sql = 'DELETE FROM ' . $this->auth_provider_oauth_table . '
WHERE user_id = ' . $this->user->data['user_id'] . '
- AND provider = ' . $this->db->sql_escape($this->oauth_provider);
+ AND provider = \'' . $this->db->sql_escape($this->oauth_provider) . '\'';
if ($this->user->data['user_id'] == ANONYMOUS)
{