summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-02-07 14:30:23 +0100
committerGitHub <noreply@github.com>2019-02-07 14:30:23 +0100
commit6dc21fff45abbb2bde2611a82c746f873389bfd7 (patch)
tree470168ad20ff32be6534c224cd72683f288abaad /lib/private
parentf4d90960f5a9ea13f0aec607df3a25986c12c6f1 (diff)
parentc26bdd4731622992a25c00deb0f0d092b3f141b0 (diff)
downloadnextcloud-server-6dc21fff45abbb2bde2611a82c746f873389bfd7.tar.gz
nextcloud-server-6dc21fff45abbb2bde2611a82c746f873389bfd7.zip
Merge pull request #14023 from william-p/OS_params
Fix: Check if `$this->params['user']` is an array
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/ObjectStore/SwiftFactory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/SwiftFactory.php b/lib/private/Files/ObjectStore/SwiftFactory.php
index 1034026327b..40b769d2b06 100644
--- a/lib/private/Files/ObjectStore/SwiftFactory.php
+++ b/lib/private/Files/ObjectStore/SwiftFactory.php
@@ -122,7 +122,7 @@ class SwiftFactory {
'handler' => HandlerStack::create()
]);
- if (isset($this->params['user']) && isset($this->params['user']['name'])) {
+ if (isset($this->params['user']) && is_array($this->params['user']) && isset($this->params['user']['name'])) {
if (!isset($this->params['scope'])) {
throw new StorageAuthException('Scope has to be defined for V3 requests');
}