From 927eb763c33c5db6410ce692c8b3d6b52e7dec00 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 27 Apr 2015 22:08:44 +0200 Subject: Correctly remove the protocol before prepeding it --- lib/private/share/share.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 56fbc447f3c..d7c7f39d57e 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -2355,6 +2355,7 @@ class Share extends \OC\Share\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); -- cgit v1.2.3