security reasons.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1486
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$body = str_replace("\r\n", "\n", $body);
$encoding = strtolower($encoding);
$body = str_replace("\r\n", "\n", $body);
$encoding = strtolower($encoding);
+ global $show_html_default;
+
if ($encoding == "quoted-printable") {
$body = quoted_printable_decode($body);
if ($encoding == "quoted-printable") {
$body = quoted_printable_decode($body);
$body = base64_decode($body);
}
$body = base64_decode($body);
}
+ if (!$show_html_default) {
+ $body = str_replace('<', '<', $body);
+// $body = str_replace('>', '>', $body);
+// Both this and $body = htmlspecialchars($body); mess up inline
+// quoting :-( Anyway, just replacing < gets the job done.
+ }
+
// All other encodings are returned raw.
return $body;
}
// All other encodings are returned raw.
return $body;
}