summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-27 22:08:44 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-28 11:28:54 +0200
commit9fb7d0bca9006b1d19768fb214a0883e8158f455 (patch)
tree7c6403e7a86f51f77c4f05b5eed95612bc516e98 /lib/private
parentd146c13abd74f5919c08f5a936f0c9d35791be8f (diff)
downloadnextcloud-server-9fb7d0bca9006b1d19768fb214a0883e8158f455.tar.gz
nextcloud-server-9fb7d0bca9006b1d19768fb214a0883e8158f455.zip
Correctly remove the protocol before prepeding it
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/share/share.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index eeb50be44d9..d2bdca22f34 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -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);