Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-03-07 21:29:15 +0300
committerLukas Reschke <lukas@owncloud.com>2016-03-07 21:33:50 +0300
commitfab42c7cd24d2c98506e63443076a45c52f6b220 (patch)
tree0da2453324799cba190de5ed3b3173249b8504d0 /lib
parent9232a124e22e65dbdb36e6b103bf6791e04cb140 (diff)
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);
}