diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-06-02 11:20:24 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-06-02 12:39:01 +0200 |
commit | a88df5c6ec0a3d031a6a85208ca37050941ac6a6 (patch) | |
tree | 940d8349dd75787df5fecece74fb93ebd396bb55 /apps/files_external | |
parent | 54642984b1d26bfcfb7ae188d828c4a3803c218b (diff) | |
download | nextcloud-server-a88df5c6ec0a3d031a6a85208ca37050941ac6a6.tar.gz nextcloud-server-a88df5c6ec0a3d031a6a85208ca37050941ac6a6.zip |
Check if array
The great library that we use apparently uses mixed types for everything because :see_no_evil:
Fixes https://github.com/owncloud/core/issues/16679
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/3rdparty/Dropbox/OAuth/Curl.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php b/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php index cfa33ed0e1a..2f7da1ad253 100644 --- a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php +++ b/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php @@ -75,11 +75,13 @@ class Dropbox_OAuth_Curl extends Dropbox_OAuth { //if (is_array($arguments)) // $arguments=http_build_query($arguments); - foreach ($arguments as $key => $value) { - if($value[0] === '@') { - exit(); - } - } + if(is_array($arguments)) { + foreach ($arguments as $key => $value) { + if ($value[0] === '@') { + exit(); + } + } + } curl_setopt($ch, CURLOPT_POSTFIELDS, $arguments); // $httpHeaders['Content-Length']=strlen($arguments); } else { |