diff options
author | Daniel Tosello <tosello.daniel@gmail.com> | 2016-01-12 16:47:52 +1100 |
---|---|---|
committer | Daniel Tosello <tosello.daniel@gmail.com> | 2016-01-12 16:47:52 +1100 |
commit | 8783eb99f7db7c8d08f2b33223a9a547438c021a (patch) | |
tree | 12766194daf1c734fbf359195cf95f473b5f3749 | |
parent | 41f1feaf2304c8c2367168a7f3ac2793f0fb7eb2 (diff) | |
download | nextcloud-server-8783eb99f7db7c8d08f2b33223a9a547438c021a.tar.gz nextcloud-server-8783eb99f7db7c8d08f2b33223a9a547438c021a.zip |
Modified swift handling to explicitly set 404 responses to false
-rw-r--r-- | apps/files_external/lib/swift.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php index 02bfc44c36d..62c28f19b49 100644 --- a/apps/files_external/lib/swift.php +++ b/apps/files_external/lib/swift.php @@ -323,7 +323,8 @@ class Swift extends \OC\Files\Storage\Common { $streamInterface->rewind(); $stream = $streamInterface->getStream(); stream_context_set_option($stream, 'swift','content', $streamInterface); - if(is_resource($stream)) { + if(!strrpos($streamInterface + ->getMetaData('wrapper_data')[0], '404 Not Found')) { return $stream; } return false; |