X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=f32330b1bd2993b404444390d510c3185124d574;hb=d8415ed878ea9a1a48879622d2ac674e9856d6bd;hp=176ed65e2bce71fce4ab508e9688d40ab671259e;hpb=6190378ce88597758b2dcf7d800a886473886cec;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index 176ed65e..f32330b1 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -3,7 +3,7 @@ /** * read_body.php * - * Copyright (c) 1999-2004 The SquirrelMail Project Team + * Copyright (c) 1999-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * This file is used for reading the msgs array and displaying @@ -93,9 +93,16 @@ function findPreviousMessage($uidset, $passed_id) { function printer_friendly_link($mailbox, $passed_id, $passed_ent_id) { global $javascript_on; + /* hackydiehack */ + if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) { + $view_unsafe_images = false; + } else { + $view_unsafe_images = true; + } $params = '?passed_ent_id=' . urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox) . - '&passed_id=' . urlencode($passed_id); + '&passed_id=' . urlencode($passed_id). + '&view_unsafe_images='. (bool) $view_unsafe_images; $print_text = _("View Printable Version");