Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix: Check if $this->params['user'] is an array
Signed-off-by: William Pain <[email protected]>
  • Loading branch information
william-p authored and Backportbot committed Feb 7, 2019
commit 602cea074f2ca46a467847e950a07d5a6ce25433
2 changes: 1 addition & 1 deletion lib/private/Files/ObjectStore/SwiftFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private function getClient() {
'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');
}
Expand Down