[Pkg-owncloud-commits] [owncloud] 08/62: Check if array
David Prévot
taffit at moszumanska.debian.org
Tue Jun 23 23:39:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.5beta
in repository owncloud.
commit 8c6e5907d1453de23cfdb2841154fe9a732b1d89
Author: Lukas Reschke <lukas at owncloud.com>
Date: Tue Jun 2 11:20:24 2015 +0200
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
---
apps/files_external/3rdparty/Dropbox/OAuth/Curl.php | 12 +++++++-----
1 file 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 cfa33ed..2f7da1a 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 {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list