Browse Source

Correctly remove the protocol before prepeding it

remotes/origin/poc-doctrine-migrations
Joas Schilling 11 years ago
parent
commit
9fb7d0bca9
  1. 1
      lib/private/share/share.php

1
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);

Loading…
Cancel
Save