From: kink Date: Sun, 15 Jun 2003 12:30:23 +0000 (+0000) Subject: Do not turn references and in-reply-to headers into links. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dbdfdf6c123c81d3a3fd8d90ff0a781032dac59f;p=squirrelmail.git Do not turn references and in-reply-to headers into links. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5053 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/view_header.php b/src/view_header.php index 4f2da59f..81b16c08 100644 --- a/src/view_header.php +++ b/src/view_header.php @@ -22,17 +22,17 @@ require_once(SM_PATH . 'functions/html.php'); require_once(SM_PATH . 'functions/url_parser.php'); function parse_viewheader($imapConnection,$id, $passed_ent_id) { - global $uid_support; + global $uid_support; - $header_full = array(); - if (!$passed_ent_id) { - $read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]", + $header_full = array(); + if (!$passed_ent_id) { + $read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]", true, $a, $b, $uid_support); - } else { - $query = "FETCH $id BODY[".$passed_ent_id.'.HEADER]'; - $read=sqimap_run_command ($imapConnection, $query, + } else { + $query = "FETCH $id BODY[".$passed_ent_id.'.HEADER]'; + $read=sqimap_run_command ($imapConnection, $query, true, $a, $b, $uid_support); - } + } $cnum = 0; for ($i=1; $i < count($read); $i++) { $line = htmlspecialchars($read[$i]); @@ -65,9 +65,11 @@ function parse_viewheader($imapConnection,$id, $passed_ent_id) { $s .= '    ' . nl2br($second[$j]); $j++; } - if(strtolower($f) != 'message-id:') { - parseEmail($s); - } + $lowf=strtolower($f); + /* do not mark these headers as emailaddresses */ + if($lowf != 'message-id:' && $lowf != 'in-reply-to:' && $lowf != 'references:') { + parseEmail($s); + } if ($f) { $header_output[] = array($f,$s); }