diff options
| author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 15:06:38 -0400 |
|---|---|---|
| committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 15:08:08 -0400 |
| commit | 15a2ad3149f8ef00630b9480b3854643b4e38e92 (patch) | |
| tree | df4adac0ec200d5bf33f983a8500d0830a6002d1 /phpBB/phpbb | |
| parent | 27ea03d3e098ca53f9f49da5024f7d7c64989153 (diff) | |
| download | forums-15a2ad3149f8ef00630b9480b3854643b4e38e92.tar forums-15a2ad3149f8ef00630b9480b3854643b4e38e92.tar.gz forums-15a2ad3149f8ef00630b9480b3854643b4e38e92.tar.bz2 forums-15a2ad3149f8ef00630b9480b3854643b4e38e92.tar.xz forums-15a2ad3149f8ef00630b9480b3854643b4e38e92.zip | |
[feature/oauth] Fix error in token_storage::set_user_id()
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/auth/provider/oauth/token_storage.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/token_storage.php b/phpBB/phpbb/auth/provider/oauth/token_storage.php index 42142b4fbe..ec54c07fea 100644 --- a/phpBB/phpbb/auth/provider/oauth/token_storage.php +++ b/phpBB/phpbb/auth/provider/oauth/token_storage.php @@ -191,7 +191,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface if ($this->user->data['user_id'] == ANONYMOUS) { - $sql .= ' AND session_id = ' . $this->user->data['session_id']; + $sql .= ' AND session_id = \'' . $this->user->data['session_id'] . '\''; } $this->db->sql_query($sql); @@ -210,11 +210,11 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface } $sql = 'UPDATE ' . $this->auth_provider_oauth_table . ' - SET ' . $db->sql_build_array('UPDATE', array( + SET ' . $this->db->sql_build_array('UPDATE', array( 'user_id' => (int) $user_id )) . ' WHERE user_id = ' . $this->user->data['user_id'] . ' - AND session_id = ' . $this->user->data['session_id']; + AND session_id = \'' . $this->user->data['session_id'] . '\''; $this->db->sql_query($sql); } } |
