', '\\', '"', '/', ':', '|', '?', '*']; return str_replace($disabledCharacters, '', $name); } protected function _sendTempFile($file, $name) { header('Expires: Sat, 01 Jan 2000 00:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); header('Content-Type: application/pdf'); header('Content-Disposition: inline; filename="' . $this->_escapeAttachmentName($name . '.pdf') . '"'); readfile($file); unlink($file); exit; } }