]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert custom patch that can cause problems
authorLukas Reschke <lukas@owncloud.com>
Tue, 7 Apr 2015 13:12:10 +0000 (15:12 +0200)
committerLukas Reschke <lukas@owncloud.com>
Mon, 1 Jun 2015 15:06:05 +0000 (17:06 +0200)
apps/files_external/3rdparty/Dropbox/OAuth/Curl.php

index b75b27bb3637363910676c04fc1fcd8886b3d7cf..cfa33ed0e1afe889f2b41d3091d7ff4e08be915a 100644 (file)
@@ -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 {