Browse Source

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
remotes/origin/design-experiment
Lukas Reschke 10 years ago
parent
commit
1fd76b6379
  1. 4
      lib/private/streamer.php

4
lib/private/streamer.php

@ -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…
Cancel
Save