[Pkg-owncloud-commits] [owncloud] 134/223: Always send a POST body
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574
Author: Robin Appelman <icewind at owncloud.com>
Date: Fri Jun 13 15:28:35 2014 +0200
Always send a POST body
---
apps/files_sharing/lib/external/scanner.php | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/apps/files_sharing/lib/external/scanner.php b/apps/files_sharing/lib/external/scanner.php
index 8fb8683..7381450 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list