diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php index af9f9c6..cf1d542 100644 --- a/Rocksolid_Light/rocksolid/lib/message.inc.php +++ b/Rocksolid_Light/rocksolid/lib/message.inc.php @@ -419,7 +419,7 @@ function show_header($head, $group, $local_poster = false) echo '
'; if ($article_show["Subject"]) { echo '
'; - echo $text_header["subject"] . htmlspecialchars($head->subject) . "
"; + echo $text_header["subject"] . htmlspecialchars(mb_substr($head->subject, 0, strlen($head->subject))) . "
"; echo '
'; } if ($article_show["From"]) { @@ -596,7 +596,7 @@ function show_header_short($head, $group, $local_poster = false) $displaydate = get_date_for_client_timezone($head->date); echo '
'; - echo htmlspecialchars($head->subject) . "
"; + echo htmlspecialchars(mb_substr($head->subject, 0, strlen($head->subject))) . "
"; echo '
'; echo '
'; echo "From: " . $displayname; @@ -746,7 +746,7 @@ function show_header_short_with_subject($head, $group, $local_poster = false) // Display Subject and From echo ''; echo ''; - echo htmlspecialchars($head->subject); + echo htmlspecialchars(mb_substr($head->subject, 0, strlen($head->subject))); echo ''; echo ''; echo 'From: ' . $displayname . ''; diff --git a/Rocksolid_Light/rocksolid/lib/thread.inc.php b/Rocksolid_Light/rocksolid/lib/thread.inc.php index 1cac5c0..f953c12 100644 --- a/Rocksolid_Light/rocksolid/lib/thread.inc.php +++ b/Rocksolid_Light/rocksolid/lib/thread.inc.php @@ -881,7 +881,6 @@ function thread_show_recursive(&$headers, &$liste, $depth, $tree, $group, $artic // read the first article $c = $headers[$liste[$i]]; $last_thread = $c->date_thread; - // Avoid listing if error (fixme) // if (preg_match('/\D/', $c->number)) { if (! is_numeric($c->number) || ! isset($c->id) || $c->date < 1) {