From: Michael Vogel Date: Mon, 15 Jul 2013 04:56:23 +0000 (+0200) Subject: pumpio: Changed nonce for oAuth from md5 to sha1 - hopefully now more posts come... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e7f5f0cf200407bac24af30e818f2d11378b8e30;p=friendica-addons.git pumpio: Changed nonce for oAuth from md5 to sha1 - hopefully now more posts come through --- diff --git a/pumpio/oauth/oauth_client.php b/pumpio/oauth/oauth_client.php index 5047e0e9..2a709aab 100644 --- a/pumpio/oauth/oauth_client.php +++ b/pumpio/oauth/oauth_client.php @@ -1013,7 +1013,8 @@ class oauth_client_class { $values = array( '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_timestamp'=>time(), 'oauth_version'=>'1.0', @@ -2173,4 +2174,4 @@ class oauth_client_class */ -?> \ No newline at end of file +?>