summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-06-02 11:20:24 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-02 12:39:01 +0200
commita88df5c6ec0a3d031a6a85208ca37050941ac6a6 (patch)
tree940d8349dd75787df5fecece74fb93ebd396bb55 /apps/files_external
parent54642984b1d26bfcfb7ae188d828c4a3803c218b (diff)
downloadnextcloud-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.php12
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 {