summaryrefslogtreecommitdiffstats
path: root/lib/private/streamer.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/streamer.php')
-rw-r--r--lib/private/streamer.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/streamer.php b/lib/private/streamer.php
index 2502807330b..48a926f42f8 100644
--- a/lib/private/streamer.php
+++ b/lib/private/streamer.php
@@ -48,7 +48,12 @@ class Streamer {
*/
public function sendHeaders($name){
$extension = $this->streamerInstance instanceof ZipStreamer ? '.zip' : '.tar';
- $this->streamerInstance->sendHeaders($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);
}
/**