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:
parent
0487b541a0
commit
1fd76b6379
|
@ -51,10 +51,6 @@ class Streamer {
|
||||||
public function sendHeaders($name){
|
public function sendHeaders($name){
|
||||||
$extension = $this->streamerInstance instanceof ZipStreamer ? '.zip' : '.tar';
|
$extension = $this->streamerInstance instanceof ZipStreamer ? '.zip' : '.tar';
|
||||||
$fullName = $name . $extension;
|
$fullName = $name . $extension;
|
||||||
// ZipStreamer does not escape name in Content-Disposition atm
|
|
||||||
if ($this->streamerInstance instanceof ZipStreamer) {
|
|
||||||
$fullName = rawurlencode($fullName);
|
|
||||||
}
|
|
||||||
$this->streamerInstance->sendHeaders($fullName);
|
$this->streamerInstance->sendHeaders($fullName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue