diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-27 14:19:30 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-06 16:05:03 +0200 |
commit | 404e36323a06c4c01eea1ccb2d97306e570ec6cc (patch) | |
tree | cfadab670d99c6db118f390c2ec4fa87c46f6722 /apps/files_encryption | |
parent | 597a3cf1ad5443e3e38fc415211b293be19ab8f8 (diff) | |
download | nextcloud-server-404e36323a06c4c01eea1ccb2d97306e570ec6cc.tar.gz nextcloud-server-404e36323a06c4c01eea1ccb2d97306e570ec6cc.zip |
first check if a extension exists before comparing it
Diffstat (limited to 'apps/files_encryption')
-rw-r--r-- | apps/files_encryption/lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 73191de5681..62f82ce1a96 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -1292,7 +1292,7 @@ class Util { $pathinfo = pathinfo($path); $partfile = false; $parentFolder = false; - if ($pathinfo['extension'] === 'part') { + if (array_key_exists('extension', $pathinfo) && $pathinfo['extension'] === 'part') { // if the real file exists we check this file if ($this->view->file_exists($this->userFilesDir . '/' . $pathinfo['dirname'] . '/' . $pathinfo['filename'])) { $pathToCheck = $pathinfo['dirname'] . '/' . $pathinfo['filename']; |