From e7f5f0cf200407bac24af30e818f2d11378b8e30 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 15 Jul 2013 06:56:23 +0200 Subject: [PATCH] pumpio: Changed nonce for oAuth from md5 to sha1 - hopefully now more posts come through --- pumpio/oauth/oauth_client.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +?>