diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-03-07 21:29:15 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-03-07 21:33:50 +0300 |
commit | fab42c7cd24d2c98506e63443076a45c52f6b220 (patch) | |
tree | 0da2453324799cba190de5ed3b3173249b8504d0 /lib | |
parent | 9232a124e22e65dbdb36e6b103bf6791e04cb140 (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.php | 4 |
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); } |