diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php index a26696c..af9f9c6 100644 --- a/Rocksolid_Light/rocksolid/lib/message.inc.php +++ b/Rocksolid_Light/rocksolid/lib/message.inc.php @@ -456,7 +456,7 @@ function show_header($head, $group, $local_poster = false) echo create_name_link($head->name, $head->from, false); } else { if (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true) { - echo truncate_email($head->from); + echo htmlspecialchars(truncate_email($head->from)); } else { echo htmlspecialchars($head->from); } @@ -582,7 +582,7 @@ function show_header_short($head, $group, $local_poster = false) $displayname = create_name_link($head->name, $head->from, false); } else { if (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true) { - $displayname = truncate_email($head->from); + $displayname = htmlspecialchars(truncate_email($head->from)); } else { $displayname = htmlspecialchars($head->from); } @@ -730,7 +730,7 @@ function show_header_short_with_subject($head, $group, $local_poster = false) $displayname = create_name_link($head->name, $head->from, false); } else { if (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true) { - $displayname = truncate_email($head->from); + $displayname = htmlspecialchars(truncate_email($head->from)); } else { $displayname = htmlspecialchars($head->from); } @@ -745,9 +745,6 @@ function show_header_short_with_subject($head, $group, $local_poster = false) // Display Subject and From echo '
(message #' . $head->number . ' hidden by your blocklist)
' . $text_article["block-xnoarchive"] . '(article #' . $id . ')
(message #' . $head->number . ' not displayed - malformed header)