From 1fd76b6379cceb357ed743b5f745b3912ad75967 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 7 Mar 2016 19:29:15 +0100 Subject: [PATCH] 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 --- lib/private/streamer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/private/streamer.php b/lib/private/streamer.php index 5fffa7ac36..23c191b68d 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); }