summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-12 18:40:10 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-14 13:16:23 +0200
commit1b3feb710d59c39a044447159e7b06624b16dd6e (patch)
treeb9befdf7b5e01cec606814f77537af95af0f3460 /lib/private
parent766314a6be5a24a4bd7d503d9c44998c13fe348b (diff)
downloadnextcloud-server-1b3feb710d59c39a044447159e7b06624b16dd6e.tar.gz
nextcloud-server-1b3feb710d59c39a044447159e7b06624b16dd6e.zip
Use `rawurlencode` since this seems to be expected by cURL
Fixes https://github.com/owncloud/core/pull/11501#issuecomment-58794405
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/largefilehelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/largefilehelper.php b/lib/private/largefilehelper.php
index d5b7946feff..33f32255f3b 100644
--- a/lib/private/largefilehelper.php
+++ b/lib/private/largefilehelper.php
@@ -101,7 +101,7 @@ class LargeFileHelper {
*/
public function getFileSizeViaCurl($filename) {
if (function_exists('curl_init')) {
- $fencoded = urlencode($filename);
+ $fencoded = rawurlencode($filename);
$ch = curl_init("file://$fencoded");
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);