From 1b3feb710d59c39a044447159e7b06624b16dd6e Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sun, 12 Oct 2014 18:40:10 +0200 Subject: Use `rawurlencode` since this seems to be expected by cURL Fixes https://github.com/owncloud/core/pull/11501#issuecomment-58794405 --- lib/private/largefilehelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/largefilehelper.php') 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); -- cgit v1.2.3