1
0
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:
mrgoldy 2019-10-08 20:18:20 +02:00 committed by Marc Alexander
parent 219955fa6c
commit cbb5e6f765
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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