X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=pumpio%2Foauth%2Foauth_client.php;h=0e5fa4a58970fc82654973345940136b1c019992;hb=a5b1984e741bd85d0d9713fb1ac8c8c0a7a94159;hp=5047e0e9b41f10d3e09aefcc54dbc55d434feb34;hpb=ac581239f64056ca0c4731ec38d1fdc5eec52953;p=friendica-addons.git diff --git a/pumpio/oauth/oauth_client.php b/pumpio/oauth/oauth_client.php index 5047e0e9..0e5fa4a5 100644 --- a/pumpio/oauth/oauth_client.php +++ b/pumpio/oauth/oauth_client.php @@ -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 +?>