"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srv/benno/bennoweb/htdocs/ctrl/downloadAttachment.php" between
benno-web-2.8.9.tgz and benno-web-2.8.10.tgz

About: Open Benno (webapp) mail archiving solution (GUI and user-frontend; PHP5).

downloadAttachment.php  (benno-web-2.8.9.tgz):downloadAttachment.php  (benno-web-2.8.10.tgz)
skipping to change at line 41 skipping to change at line 41
* Suite 330, Boston, MA 02111-1307 USA * Suite 330, Boston, MA 02111-1307 USA
*/ */
// EMail from session (s.a. pre_ctrl) // EMail from session (s.a. pre_ctrl)
$filename = $App->getParam('name'); $filename = $App->getParam('name');
$attachmentId = $App->getParam('attachmentId'); $attachmentId = $App->getParam('attachmentId');
$contentType = $App->getParam('type'); $contentType = $App->getParam('type');
$sessionMailId = $App->getParam('id'); $sessionMailId = $App->getParam('id');
try { try {
$filename = urlencode($filename);
$attachmentData = $Backend->fetchAttachment($archive,$sessionMailId,$filenam e, $attachmentId); $attachmentData = $Backend->fetchAttachment($archive,$sessionMailId,$filenam e, $attachmentId);
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: public"); header("Pragma: public");
header('Content-Type: '.$contentType); header('Content-Type: '.$contentType);
header("Content-Disposition: attachment; filename=\"$filename\";"); header("Content-Disposition: attachment; filename=\"$filename\";");
print $attachmentData; print $attachmentData;
exit; exit;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)