]> git.mxchange.org Git - friendica-addons.git/blobdiff - pumpio/oauth/oauth_client.php
updated CS translation of the securemail addon THX Aditoo
[friendica-addons.git] / pumpio / oauth / oauth_client.php
index 5047e0e9b41f10d3e09aefcc54dbc55d434feb34..0e5fa4a58970fc82654973345940136b1c019992 100644 (file)
@@ -998,6 +998,8 @@ class oauth_client_class
                $this->response_status = 0;
                $http = new http_class;
                $http->debug = ($this->debug && $this->debug_http);
+               $http->timeout = 30;
+               $http->data_timeout = 60;
                $http->log_debug = true;
                $http->sasl_authenticate = 0;
                $http->user_agent = $this->oauth_user_agent;
@@ -1013,7 +1015,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 +2176,4 @@ class oauth_client_class
 
 */
 
-?>
\ No newline at end of file
+?>