diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-27 22:08:44 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-04 10:46:37 +0200 |
commit | 927eb763c33c5db6410ce692c8b3d6b52e7dec00 (patch) | |
tree | 0982f174acdd2f002fec8bc83e03d5a8645da7dc | |
parent | 2e0c3665b0a2a9635d5adf5e4339e4d329a600ce (diff) | |
download | nextcloud-server-927eb763c33c5db6410ce692c8b3d6b52e7dec00.tar.gz nextcloud-server-927eb763c33c5db6410ce692c8b3d6b52e7dec00.zip |
Correctly remove the protocol before prepeding it
-rw-r--r-- | lib/private/share/share.php | 1 |
1 files changed, 1 insertions, 0 deletions
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); |