Commit 9ce8e1dd authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

OCS API should return fancy OC url

* Also use the URLGenerator
parent e8680e66
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment