1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Lukas Reschke <lukas@owncloud.com>
Date: Tue, 7 Apr 2015 15:12:10 +0200
Subject: Revert custom patch that can cause problems
Origin: upstream, https://github.com/owncloud/core/commit/7071cf15c25be4a0e4178019c625c57b898e4216
---
Dropbox-1.0.0/Dropbox/OAuth/Curl.php | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Dropbox-1.0.0/Dropbox/OAuth/Curl.php b/Dropbox-1.0.0/Dropbox/OAuth/Curl.php
index 6ea6873..9aa6852 100644
--- a/Dropbox-1.0.0/Dropbox/OAuth/Curl.php
+++ b/Dropbox-1.0.0/Dropbox/OAuth/Curl.php
@@ -72,8 +72,14 @@ class Dropbox_OAuth_Curl extends Dropbox_OAuth {
if (strtoupper($method) == 'POST') {
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_POST, true);
-// if (is_array($arguments))
-// $arguments=http_build_query($arguments);
+
+ //if (is_array($arguments))
+ // $arguments=http_build_query($arguments);
+ foreach ($arguments as $key => $value) {
+ if($value[0] === '@') {
+ exit();
+ }
+ }
curl_setopt($ch, CURLOPT_POSTFIELDS, $arguments);
// $httpHeaders['Content-Length']=strlen($arguments);
} else {
|