summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/keymanager.php
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-13 21:24:59 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-13 21:24:59 +0200
commit61ed347d26872bc62465be4df595da3391ea84bb (patch)
treeba1323c1451ba76d1ba23bba4de05c1208627ebd /apps/files_encryption/lib/keymanager.php
parentd92f6b887d99a24b2bda1503f328c698c682d60e (diff)
downloadnextcloud-server-61ed347d26872bc62465be4df595da3391ea84bb.tar.gz
nextcloud-server-61ed347d26872bc62465be4df595da3391ea84bb.zip
added handling for public file access via files_sharing link
Diffstat (limited to 'apps/files_encryption/lib/keymanager.php')
-rwxr-xr-xapps/files_encryption/lib/keymanager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/keymanager.php b/apps/files_encryption/lib/keymanager.php
index 6c2df6f8406..8ee7820b169 100755
--- a/apps/files_encryption/lib/keymanager.php
+++ b/apps/files_encryption/lib/keymanager.php
@@ -455,7 +455,7 @@ class Keymanager {
list($owner, $filename) = $util->getUidAndFilename($filePath);
- $shareKeyPath = '/' . $owner . '/files_encryption/share-keys/' . $filename . '.' . $userId . '.shareKey';
+ $shareKeyPath = \OC\Files\Filesystem::normalizePath('/' . $owner . '/files_encryption/share-keys/' . $filename . '.' . $userId . '.shareKey');
if ( $view->file_exists( $shareKeyPath ) ) {
$result = $view->file_get_contents( $shareKeyPath );