]> source.dussan.org Git - nextcloud-server.git/commitdiff
Forgot to set token variable
authorMichael Gapczynski <GapczynskiM@gmail.com>
Mon, 7 May 2012 16:36:29 +0000 (12:36 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Mon, 7 May 2012 16:36:29 +0000 (12:36 -0400)
apps/files_sharing/get.php

index f430c12a9c203e4a6e64317b0b8c1732120d2680..59a4efba6a6c1989bdf706b04793a00d14bb7313 100755 (executable)
@@ -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);