mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Forgot to set token variable
This commit is contained in:
parent
52d113b9e1
commit
bf8b3b0696
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ require_once 'lib_share.php';
|
|||
|
||||
//get the path of the shared file
|
||||
if (isset($_GET['token']) && $source = OC_Share::getSource($_GET['token'])) {
|
||||
$token = $_GET['token'];
|
||||
// TODO Manipulating the string may not be the best choice. Is there an alternative?
|
||||
$user = substr($source, 1, strpos($source, "/", 1) - 1);
|
||||
OC_Util::setupFS($user);
|
||||
|
|
|
|||
Loading…
Reference in a new issue