From 558a6db27ea6c8b50a113c96c65408566a626807 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 12 Jan 2016 12:47:51 +0100 Subject: [PATCH] Fix headers encoding when using 'valueof' mode --- program/steps/mail/func.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 67ba4f1be..963e6965c 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1116,7 +1116,8 @@ function rcmail_message_headers($attrib, $headers=null) // single header value is requested if (!empty($attrib['valueof'])) { - return rcube::Q($plugin['output'][$attrib['valueof']]['value']); + $row = $plugin['output'][$attrib['valueof']]; + return $row['html'] ? $row['value'] : rcube::Q($row['value']); } // compose html table