From 69e110f3320c698f8ecc5a7f34ea9fac1caf3c39 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 6 Jul 2017 04:33:07 +0000 Subject: [PATCH] Legacy code was probably wrong git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14702 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/addrbook_search_html.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 7101f7ca..38b80646 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -46,11 +46,12 @@ function addr_insert_hidden() { $request_mdn, $request_dr, $identity, $session, $composeMessage, $action; //FIXME Do not echo HTML from the core. This file already uses templates mostly, so why are we echoing here at all?!? - if (substr($body, 0, 1) == "\r") { - echo addHidden('body', "\n".$body); - } else { + // someone tell me why this is needed and if so, why it isn't something like replace \r\n with \n + // if (substr($body, 0, 1) == "\r") { + // echo addHidden('body', "\n".$body); + // } else { echo addHidden('body', $body); - } + // } if (is_object($composeMessage) && $composeMessage->entities) echo addHidden('attachments', urlencode(serialize($composeMessage->entities))); -- 2.25.1