forked from friendica/friendica-addons
pumpio: Changed nonce for oAuth from md5 to sha1 - hopefully now more posts come through
This commit is contained in:
parent
37940d0070
commit
e7f5f0cf20
|
@ -1013,7 +1013,8 @@ class oauth_client_class
|
||||||
{
|
{
|
||||||
$values = array(
|
$values = array(
|
||||||
'oauth_consumer_key'=>$this->client_id,
|
'oauth_consumer_key'=>$this->client_id,
|
||||||
'oauth_nonce'=>md5(uniqid(rand(), true)),
|
//'oauth_nonce'=>md5(uniqid(rand(), true)),
|
||||||
|
'oauth_nonce'=>sha1(uniqid(mt_rand(), true).uniqid(mt_rand(), true)),
|
||||||
'oauth_signature_method'=>$this->signature_method,
|
'oauth_signature_method'=>$this->signature_method,
|
||||||
'oauth_timestamp'=>time(),
|
'oauth_timestamp'=>time(),
|
||||||
'oauth_version'=>'1.0',
|
'oauth_version'=>'1.0',
|
||||||
|
@ -2173,4 +2174,4 @@ class oauth_client_class
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue