diff options
author | William Pain <pain.william@gmail.com> | 2019-02-04 17:29:35 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-02-07 13:33:21 +0000 |
commit | 130c094df062eefe1e197b7a4a287de010d027cd (patch) | |
tree | 0dd30f7f18dc1c0a484da35218a69393adc68abc | |
parent | 34226642c4743a069423f79ced1c02335b58aa6e (diff) | |
download | nextcloud-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.php | 2 |
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'); } |