diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-18 14:29:01 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-21 09:47:06 +0100 |
commit | 9ce8e1ddc7a842db32cc58530e2022238b6e35ea (patch) | |
tree | 77b6983a7bc9db49cc05cc08a45fd96cb2a45b50 /apps/files_sharing | |
parent | e8680e6637c7bb4aa5a331d81ba5ed76e0dfd1ae (diff) | |
download | nextcloud-server-9ce8e1ddc7a842db32cc58530e2022238b6e35ea.tar.gz nextcloud-server-9ce8e1ddc7a842db32cc58530e2022238b6e35ea.zip |
OCS API should return fancy OC url
* Also use the URLGenerator
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/api/local.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/api/local.php b/apps/files_sharing/api/local.php index 87a8fbbb21f..3cf541b3fab 100644 --- a/apps/files_sharing/api/local.php +++ b/apps/files_sharing/api/local.php @@ -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 { |