OCS API should return fancy OC url

* Also use the URLGenerator
This commit is contained in:
Roeland Jago Douma 2015-03-18 14:29:01 +01:00
parent e8680e6637
commit 9ce8e1ddc7
1 changed files with 1 additions and 2 deletions

View File

@ -303,8 +303,7 @@ class Local {
break;
}
}
$url = \OCP\Util::linkToPublic('files&t='.$token);
$data['url'] = $url; // '&' gets encoded to $amp;
$data['url'] = \OC::$server->getURLGenerator()->linkToRouteAbsolute('files_sharing.sharecontroller.showShare', ['token' => $token]);
$data['token'] = $token;
} else {