Merge pull request #22918 from owncloud/remove-double-encoding-in-name

Remove double URL encoding
This commit is contained in:
Thomas Müller 2016-03-08 09:40:27 +01:00
commit 21b6bd321d
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);
}