From 38b012e072f808393f87f5cc3059fab7072fb8b7 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 08 Feb 2008 12:33:08 -0500 Subject: [PATCH] Added some charset aliases to fix typical mis-labelling (#1484565) --- program/steps/mail/viewsource.inc | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/viewsource.inc b/program/steps/mail/viewsource.inc index 0fcb1f9..c88b165 100644 --- a/program/steps/mail/viewsource.inc +++ b/program/steps/mail/viewsource.inc @@ -5,7 +5,7 @@ | program/steps/mail/viewsource.inc | | | | This file is part of the RoundCube Webmail client | - | Copyright (C) 2005, RoundCube Dev. - Switzerland | + | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | | Licensed under the GNU GPL | | | | PURPOSE: | @@ -21,19 +21,20 @@ // similar code as in program/steps/mail/get.inc -if ($_GET['_uid']) +if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) { header('Content-Type: text/plain'); - print rcmail_message_source($_GET['_uid']); + //@ob_end_clean(); + $IMAP->print_raw_body($uid); } else { raise_error(array('code' => 500, 'type' => 'php', - 'message' => 'Message UID '.$_GET['_uid'].' not found'), + 'message' => 'Message UID '.$uid.' not found'), TRUE, TRUE); } exit; -?> \ No newline at end of file +?> -- Gitblit v1.9.1