diff --git a/include/class.file.php b/include/class.file.php index e8ea7db9a10b89cdee5f47f493009239fa3f95dd..a2a0e57cb1db28daaa2819f52c5b5de630e77b25 100644 --- a/include/class.file.php +++ b/include/class.file.php @@ -247,8 +247,6 @@ class AttachmentFile extends VerySimpleModel { $ttl = ($expires) ? $expires - Misc::gmtime() : false; $this->makeCacheable($ttl); $type = $this->getType() ?: 'application/octet-stream'; - if (isset($_REQUEST['overridetype'])) - $type = $_REQUEST['overridetype']; Http::download($this->getName(), $type, null, 'inline'); header('Content-Length: '.$this->getSize()); $this->sendData(false);