summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-11-25 10:09:16 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-11-25 10:09:16 +0100
commit6fb2477fb75d4c982a1568e2392d17fd7cc2fd4b (patch)
tree084512c823057b7afeffaeeccfa0fa77afea5bb7 /apps/files_sharing/lib
parentbc3c835f6acacd00c1373b148e76c965081c829c (diff)
parenta6ebb176102fcb157c529685cbaeb358950a054a (diff)
downloadnextcloud-server-6fb2477fb75d4c982a1568e2392d17fd7cc2fd4b.tar.gz
nextcloud-server-6fb2477fb75d4c982a1568e2392d17fd7cc2fd4b.zip
Merge pull request #12262 from owncloud/removeAbsoluteDirectoryPathFromTemplate
Don't disclose relative directory path for single shared files of user
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/controllers/sharecontroller.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index 71b5ab7f8c8..076df3c46f6 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -23,7 +23,6 @@ use OCP\AppFramework\Controller;
use OCP\IRequest;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\RedirectResponse;
-use OCP\AppFramework\IApi;
use OC\URLGenerator;
use OC\AppConfig;
use OCP\ILogger;
@@ -159,7 +158,6 @@ class ShareController extends Controller {
$originalSharePath .= $path;
}
- $dir = dirname($originalSharePath);
$file = basename($originalSharePath);
$shareTmpl = array();
@@ -171,7 +169,7 @@ class ShareController extends Controller {
$shareTmpl['sharingToken'] = $token;
$shareTmpl['server2serversharing'] = Helper::isOutgoingServer2serverShareEnabled();
$shareTmpl['protected'] = isset($linkItem['share_with']) ? 'true' : 'false';
- $shareTmpl['dir'] = $dir;
+ $shareTmpl['dir'] = '';
$shareTmpl['fileSize'] = \OCP\Util::humanFileSize(\OC\Files\Filesystem::filesize($originalSharePath));
// Show file list