diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-04-07 15:12:10 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-06-01 17:06:58 +0200 |
commit | bf0f1a50926a75a26a42a3da4d62e84a489ee77a (patch) | |
tree | fd845f4ea163b23d2be8d7e13c3d4c54a8d15cd2 | |
parent | 0899f66232f7c9a11100d6ab2df9c41d05854b48 (diff) | |
download | nextcloud-server-bf0f1a50926a75a26a42a3da4d62e84a489ee77a.tar.gz nextcloud-server-bf0f1a50926a75a26a42a3da4d62e84a489ee77a.zip |
Revert custom patch that can cause problems
-rw-r--r-- | apps/files_external/3rdparty/Dropbox/OAuth/Curl.php | 10 |
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 { |