]> git.mxchange.org Git - friendica-addons.git/commitdiff
pumpio: Changed nonce for oAuth from md5 to sha1 - hopefully now more posts come...
authorMichael Vogel <icarus@dabo.de>
Mon, 15 Jul 2013 04:56:23 +0000 (06:56 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 15 Jul 2013 04:56:23 +0000 (06:56 +0200)
pumpio/oauth/oauth_client.php

index 5047e0e9b41f10d3e09aefcc54dbc55d434feb34..2a709aab4e8025af9d0c4278708a521e465e4769 100644 (file)
@@ -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
+?>