Correctly remove the protocol before prepeding it

This commit is contained in:
Joas Schilling 2015-04-27 22:08:44 +02:00
parent d146c13abd
commit 9fb7d0bca9
1 changed files with 1 additions and 0 deletions

View File

@ -2461,6 +2461,7 @@ class Share extends Constants {
private static function sendRemoteUnshare($remote, $id, $token) {
$url = rtrim($remote, '/') . self::BASE_PATH_TO_SHARE_API . '/' . $id . '/unshare?format=' . self::RESPONSE_FORMAT;
$fields = array('token' => $token, 'format' => 'json');
$url = self::removeProtocolFromUrl($url);
$result = self::tryHttpPost($url, $fields);
$status = json_decode($result['result'], true);