Closed GoogleCodeExporter closed 9 years ago
This is because $_GLOBALS['user'] is empty when calling twitter_process in
oauth mode.
Quick fix:
add these code in the beginning of function twitter_process
if (!isset($GLOBALS['user'])) {
if(array_key_exists('USER_AUTH', $_COOKIE)) {
_user_decrypt_cookie($_COOKIE['USER_AUTH']);
} else {
$GLOBALS['user'] = array();
}
}
These code is from function user_is_authenticated.
Original comment by cnye...@gmail.com
on 16 Nov 2009 at 1:21
Security setting fixed in r245
Original comment by david.carrington
on 16 Nov 2009 at 1:33
Original issue reported on code.google.com by
cnye...@gmail.com
on 8 Nov 2009 at 12:20