diff options
author | kondou <kondou@ts.unde.re> | 2014-08-03 11:31:28 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2014-09-04 15:23:55 +0200 |
commit | 2a4c51389c23ab1da47d52be9f2e76cd90f2df01 (patch) | |
tree | b50145fa66fe889045a0dbac963dd4b9865bf827 /apps/files_sharing/public.php | |
parent | 0f2ad9862e98e00fdc250bf8405bf6404d40b1ed (diff) | |
download | nextcloud-server-2a4c51389c23ab1da47d52be9f2e76cd90f2df01.tar.gz nextcloud-server-2a4c51389c23ab1da47d52be9f2e76cd90f2df01.zip |
Use a route instead of s.php and convert tokens asap
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 4 |
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 |