diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-04-03 17:04:13 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-04-03 17:04:13 +0200 |
commit | 7c9537f33aa590c59553cc717738a98ca54bbcb8 (patch) | |
tree | a12c72f846336f091637c51b7829ac2c9bf8fcaa | |
parent | 2b8bb0121133d460755202bfbb0e62433c12938c (diff) | |
download | nextcloud-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.php | 2 |
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(); } |