mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/16008] Enforce string data type as per ticket/16181
PHPBB3-16008
This commit is contained in:
parent
219955fa6c
commit
cbb5e6f765
1 changed files with 6 additions and 1 deletions
|
@ -215,7 +215,12 @@ class oauth extends \phpbb\auth\provider\base
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check to see if this provider is already associated with an account
|
/**
|
||||||
|
* Check to see if this provider is already associated with an account.
|
||||||
|
*
|
||||||
|
* Enforcing a data type to make sure it are strings and not integers,
|
||||||
|
* so values are quoted in the SQL WHERE statement.
|
||||||
|
*/
|
||||||
$data = [
|
$data = [
|
||||||
'provider' => (string) utf8_strtolower($provider),
|
'provider' => (string) utf8_strtolower($provider),
|
||||||
'oauth_provider_id' => (string) $unique_id
|
'oauth_provider_id' => (string) $unique_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue