Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-32290 - Repositories - Fixing missing slash from the URL path

  • Loading branch information...
commit c9af9c75701e1b5b6aa263e6222f94dde36c9d35 1 parent c80ffce
@jsnfwlr jsnfwlr authored nebgor committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/boxlib.php
View
4 lib/boxlib.php
@@ -144,7 +144,7 @@ function getAuthToken($ticket, $username, $password) {
'__login'=>1
);
try {
- $ret = $c->post($this->_box_api_auth_url.$ticket, $param);
+ $ret = $c->post($this->_box_api_auth_url.'/'.$ticket, $param);
} catch (moodle_exception $e) {
$this->setError(0, 'connection time-out or invalid url');
return false;
@@ -222,7 +222,7 @@ function buildtree($sax, &$tree){
'size'=>display_size((int)$file->attributes()->size),
'thumbnail'=>$thumbnail,
'date'=>userdate((int)$file->attributes()->updated),
- 'source'=> $this->_box_api_download_url
+ 'source'=> $this->_box_api_download_url .'/'
.$this->auth_token.'/'.(string)$file->attributes()->id,
'url'=>(string)$file->attributes()->shared_link);
$tree[] = $tmp;
Please sign in to comment.
Something went wrong with that request. Please try again.