Merge pull request #22919 from owncloud/backport-double-url-encoding

[stable9] Remove double URL encoding
This commit is contained in:
Thomas Müller 2016-03-09 12:26:29 +01:00
commit d84cccb911

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