Merge pull request #14085 from nextcloud/backport/14023/stable15
[stable15] Fix: Check if `$this->params['user']` is an array
This commit is contained in:
commit
a26a0bf75d
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue