Skip to content
Browse files

Merge branch 'MDL-39203-23' of git://github.com/FMCorz/moodle into MO…

…ODLE_23_STABLE
  • Loading branch information...
2 parents 32f2cce + ce51cb9 commit a5ce56011ae4394ff535b68a5f44e094317225df @danpoltawski danpoltawski committed
Showing with 3 additions and 1 deletion.
  1. +2 −0 lib/oauthlib.php
  2. +1 −1 repository/dropbox/lib.php
View
2 lib/oauthlib.php
@@ -264,6 +264,8 @@ public function get_access_token($token, $secret, $verifier='') {
$this->sign_secret = $this->consumer_secret.'&'.$secret;
$params = $this->prepare_oauth_parameters($this->access_token_api, array('oauth_token'=>$token, 'oauth_verifier'=>$verifier), 'POST');
$this->setup_oauth_http_header($params);
+ // Should never send the callback in this request.
+ unset($params['oauth_callback']);
$content = $this->http->post($this->access_token_api, $params, $this->http_options);
$keys = $this->parse_result($content);
$this->set_access_token($keys['oauth_token'], $keys['oauth_token_secret']);
View
2 repository/dropbox/lib.php
@@ -90,7 +90,7 @@ public function __construct($repositoryid, $context = SYSCONTEXTID, $options = a
'oauth_consumer_key'=>$this->dropbox_key,
'oauth_consumer_secret'=>$this->dropbox_secret,
'oauth_callback' => $callbackurl->out(false),
- 'api_root' => 'https://www.dropbox.com/1/oauth',
+ 'api_root' => 'https://api.dropbox.com/1/oauth',
);
$this->dropbox = new dropbox($args);

0 comments on commit a5ce560

Please sign in to comment.
Something went wrong with that request. Please try again.