diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-06-13 15:28:35 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:22:38 +0200 |
commit | 9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574 (patch) | |
tree | 414934cb3ef744ea2ed73f238396c6be35a2cb76 /apps | |
parent | be93b0d01dbd488b242b76f1c32ae03caed90a52 (diff) | |
download | nextcloud-server-9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574.tar.gz nextcloud-server-9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574.zip |
Always send a POST body
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/external/scanner.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/external/scanner.php b/apps/files_sharing/lib/external/scanner.php index 8fb8683ed92..7381450521e 100644 --- a/apps/files_sharing/lib/external/scanner.php +++ b/apps/files_sharing/lib/external/scanner.php @@ -28,10 +28,8 @@ class Scanner extends \OC\Files\Cache\Scanner { curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); - if ($password) { - curl_setopt($ch, CURLOPT_POSTFIELDS, - http_build_query(array('password' => $password))); - } + curl_setopt($ch, CURLOPT_POSTFIELDS, + http_build_query(array('password' => $password))); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); |