aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-03 17:04:13 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-03 17:04:13 +0200
commit7c9537f33aa590c59553cc717738a98ca54bbcb8 (patch)
treea12c72f846336f091637c51b7829ac2c9bf8fcaa
parent2b8bb0121133d460755202bfbb0e62433c12938c (diff)
downloadnextcloud-server-7c9537f33aa590c59553cc717738a98ca54bbcb8.tar.gz
nextcloud-server-7c9537f33aa590c59553cc717738a98ca54bbcb8.zip
Fixed dirInfo check for non existing dir in files ajax call
-rw-r--r--apps/files/ajax/list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php
index 0ffae22ec31..2d76b685018 100644
--- a/apps/files/ajax/list.php
+++ b/apps/files/ajax/list.php
@@ -7,7 +7,7 @@ OCP\JSON::checkLoggedIn();
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
$dir = \OC\Files\Filesystem::normalizePath($dir);
$dirInfo = \OC\Files\Filesystem::getFileInfo($dir);
-if (!$dirInfo->getType() === 'dir') {
+if (!$dirInfo || !$dirInfo->getType() === 'dir') {
header("HTTP/1.0 404 Not Found");
exit();
}