summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pain <pain.william@gmail.com>2019-02-04 17:29:35 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2019-02-07 13:33:21 +0000
commit130c094df062eefe1e197b7a4a287de010d027cd (patch)
tree0dd30f7f18dc1c0a484da35218a69393adc68abc
parent34226642c4743a069423f79ced1c02335b58aa6e (diff)
downloadnextcloud-server-130c094df062eefe1e197b7a4a287de010d027cd.tar.gz
nextcloud-server-130c094df062eefe1e197b7a4a287de010d027cd.zip
Fix: Check if `$this->params['user']` is an array
Signed-off-by: William Pain <pain.william@gmail.com>
-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');
}