mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-22 00:21:02 +01:00
[ticket/16008] Enforce string data type as per ticket/16181
PHPBB3-16008
This commit is contained in:
parent
219955fa6c
commit
cbb5e6f765
@ -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 = [
|
||||
'provider' => (string) utf8_strtolower($provider),
|
||||
'oauth_provider_id' => (string) $unique_id
|
||||
|
Loading…
x
Reference in New Issue
Block a user