summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-08-27 14:19:30 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-09-06 16:05:03 +0200
commit404e36323a06c4c01eea1ccb2d97306e570ec6cc (patch)
treecfadab670d99c6db118f390c2ec4fa87c46f6722 /apps/files_encryption
parent597a3cf1ad5443e3e38fc415211b293be19ab8f8 (diff)
downloadnextcloud-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.php2
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'];