fix for public link share

This commit is contained in:
Florin Peter 2013-05-14 20:11:07 +02:00
parent 81ae4cb5d0
commit 517105660d
2 changed files with 1 additions and 2 deletions

View File

@ -1096,7 +1096,7 @@ class Util {
// handle public access
if($fileOwnerUid === false && $this->isPublic) {
$filename = $this->fileIdToPath( $GLOBALS['fileSource'] );
$filename = $path;
$fileOwnerUid = $GLOBALS['fileOwner'];
return array ( $fileOwnerUid, $filename );

View File

@ -428,7 +428,6 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase
// some hacking to simulate public link
$GLOBALS['app'] = 'files_sharing';
$GLOBALS['fileOwner'] = 'admin';
$GLOBALS['fileSource'] = $fileInfo['fileid'];
\OC_User::setUserId('');
// get file contents