summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-04-07 15:12:10 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-01 17:04:55 +0200
commita035198f4b4b82564401d935bcc0bc4c6a07588c (patch)
tree80fa803075c4c9942fdedee9547b501dc90c8744 /apps/files_external/3rdparty
parent52d09386d49dd9fb7fd1764d17c8b504928f80d1 (diff)
downloadnextcloud-server-a035198f4b4b82564401d935bcc0bc4c6a07588c.tar.gz
nextcloud-server-a035198f4b4b82564401d935bcc0bc4c6a07588c.zip
Revert custom patch that can cause problems
Diffstat (limited to 'apps/files_external/3rdparty')
-rw-r--r--apps/files_external/3rdparty/Dropbox/OAuth/Curl.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php b/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php
index b75b27bb363..cfa33ed0e1a 100644
--- a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php
+++ b/apps/files_external/3rdparty/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 {