diff options
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/headers.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/headers.inc b/program/steps/mail/headers.inc index 0892247f8..3bb087a59 100644 --- a/program/steps/mail/headers.inc +++ b/program/steps/mail/headers.inc @@ -26,7 +26,8 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_POST)) $source = $RCMAIL->storage->get_raw_headers($uid); if ($source !== false) { - $source = htmlspecialchars(trim($source)); + $source = trim(rcube_charset::clean($source)); + $source = htmlspecialchars($source); $source = preg_replace( array( '/\n[\t\s]+/', |