diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-12 18:40:10 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-14 13:16:23 +0200 |
commit | 1b3feb710d59c39a044447159e7b06624b16dd6e (patch) | |
tree | b9befdf7b5e01cec606814f77537af95af0f3460 /lib/private | |
parent | 766314a6be5a24a4bd7d503d9c44998c13fe348b (diff) | |
download | nextcloud-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.php | 2 |
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); |