summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-03-07 19:29:15 +0100
committerLukas Reschke <lukas@owncloud.com>2016-03-07 19:29:15 +0100
commit1fd76b6379cceb357ed743b5f745b3912ad75967 (patch)
tree300dc3f4928f18103663e2408970061b759a5c5b /lib
parent0487b541a016be8be24114d494f9abc752abd748 (diff)
downloadnextcloud-server-1fd76b6379cceb357ed743b5f745b3912ad75967.tar.gz
nextcloud-server-1fd76b6379cceb357ed743b5f745b3912ad75967.zip
Remove double URL encoding
ZipStreamer as bundled with 9.0 will properly encode the filename already. Fixes https://github.com/owncloud/core/issues/22836#issuecomment-193336245
Diffstat (limited to 'lib')
-rw-r--r--lib/private/streamer.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/streamer.php b/lib/private/streamer.php
index 5fffa7ac368..23c191b68da 100644
--- a/lib/private/streamer.php
+++ b/lib/private/streamer.php
@@ -51,10 +51,6 @@ class Streamer {
public function sendHeaders($name){
$extension = $this->streamerInstance instanceof ZipStreamer ? '.zip' : '.tar';
$fullName = $name . $extension;
- // ZipStreamer does not escape name in Content-Disposition atm
- if ($this->streamerInstance instanceof ZipStreamer) {
- $fullName = rawurlencode($fullName);
- }
$this->streamerInstance->sendHeaders($fullName);
}