Merge pull request #22918 from owncloud/remove-double-encoding-in-name
Remove double URL encoding
This commit is contained in:
commit
21b6bd321d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue