diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-13 21:24:59 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-13 21:24:59 +0200 |
commit | 61ed347d26872bc62465be4df595da3391ea84bb (patch) | |
tree | ba1323c1451ba76d1ba23bba4de05c1208627ebd /apps/files_encryption/lib/keymanager.php | |
parent | d92f6b887d99a24b2bda1503f328c698c682d60e (diff) | |
download | nextcloud-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-x | apps/files_encryption/lib/keymanager.php | 2 |
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 ); |