From: Lukas Reschke Date: Tue, 7 Apr 2015 13:12:10 +0000 (+0200) Subject: Revert custom patch that can cause problems X-Git-Tag: v7.0.6RC2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7071cf15c25be4a0e4178019c625c57b898e4216;p=nextcloud-server.git Revert custom patch that can cause problems --- 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 {