aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-08 17:26:20 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-08 17:26:20 +0200
commitc79c894dbb6bda06ff32db4418b8fe6af5b27d4a (patch)
tree8291661d30277963db03424d6d84d4e31ffbf837 /apps
parenta92d6f3c50abc71bc02d2ddb0ae8896e9bf438c6 (diff)
parentecc9b42e4143773e4a850d6ee385328b16cda813 (diff)
downloadnextcloud-server-c79c894dbb6bda06ff32db4418b8fe6af5b27d4a.tar.gz
nextcloud-server-c79c894dbb6bda06ff32db4418b8fe6af5b27d4a.zip
Merge pull request #10755 from owncloud/shorter_sharing_links
Shorter sharing links
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/public.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 63938201eb2..bf90c0b5dfc 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -13,8 +13,12 @@ if ($appConfig->getValue('core', 'shareapi_allow_links', 'yes') !== 'yes') {
exit();
}
+// Legacy sharing links via public.php have the token in $GET['t']
if (isset($_GET['t'])) {
$token = $_GET['t'];
+}
+
+if (isset($token)) {
$linkItem = OCP\Share::getShareByToken($token, false);
if (is_array($linkItem) && isset($linkItem['uid_owner'])) {
// seems to be a valid share