diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-02 16:42:28 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:31 +0200 |
commit | 3d7404fe68474e72a520cb804d7c493e00215752 (patch) | |
tree | e53ab6622fb1298ff1072e2ef6371d1821d5d53d /lib/private/encryption | |
parent | fe74a0cb4f319ac9dccfce8c296365c3535ef84e (diff) | |
download | nextcloud-server-3d7404fe68474e72a520cb804d7c493e00215752.tar.gz nextcloud-server-3d7404fe68474e72a520cb804d7c493e00215752.zip |
add unit tests to the keystorage
Diffstat (limited to 'lib/private/encryption')
-rw-r--r-- | lib/private/encryption/keys/storage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/encryption/keys/storage.php b/lib/private/encryption/keys/storage.php index 7d0612ae30e..42610bd0b41 100644 --- a/lib/private/encryption/keys/storage.php +++ b/lib/private/encryption/keys/storage.php @@ -339,7 +339,7 @@ class Storage implements \OCP\Encryption\Keys\IStorage { protected function keySetPreparation($path) { // If the file resides within a subdirectory, create it if (!$this->view->file_exists($path)) { - $sub_dirs = explode('/', $path); + $sub_dirs = explode('/', ltrim($path, '/')); $dir = ''; foreach ($sub_dirs as $sub_dir) { $dir .= '/' . $sub_dir; |