mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
Merge pull request #22919 from owncloud/backport-double-url-encoding
[stable9] Remove double URL encoding
This commit is contained in:
commit
d84cccb911
1 changed files with 0 additions and 4 deletions
|
|
@ -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 a new issue