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
This commit is contained in:
Lukas Reschke 2016-03-07 19:29:15 +01:00
parent 0487b541a0
commit 1fd76b6379
1 changed files with 0 additions and 4 deletions

View File

@ -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);
}