summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Tosello <tosello.daniel@gmail.com>2016-01-12 16:47:52 +1100
committerDaniel Tosello <tosello.daniel@gmail.com>2016-01-12 16:47:52 +1100
commit8783eb99f7db7c8d08f2b33223a9a547438c021a (patch)
tree12766194daf1c734fbf359195cf95f473b5f3749
parent41f1feaf2304c8c2367168a7f3ac2793f0fb7eb2 (diff)
downloadnextcloud-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.php3
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;