[Foreign_link] Change the type of "credentials" to blob

TwitterOAuthClient::packToken uses \0 as a delimeter which can cause issues on
TEXT or VARCHAR.
This commit is contained in:
Alexei Sorokin
2020-08-25 16:06:37 +03:00
committed by Diogo Peralta Cordeiro
parent 912a0cb16c
commit 6e5217dc3a
2 changed files with 3 additions and 3 deletions

View File

@@ -228,7 +228,7 @@ class TwitterauthorizationAction extends FormAction
$creds = TwitterOAuthClient::packToken($access_token);
$flink->credentials = $creds;
$flink->credentials = DB_DataObject_Cast::blob($creds);
$flink->created = common_sql_now();
// Defaults: noticesync on, everything else off