From 168011042e32de9b70c2a97b6060b66ed1a6d827 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Fri, 3 May 2024 00:49:04 -0700 Subject: [PATCH] Strip html tags from overboard threaded output. --- Rocksolid_Light/rocksolid/overboard.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index ebd7bbf..9b0dc6b 100644 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -370,7 +370,6 @@ function display_threads($threads, $oldest) $display .= '

'; $display .= '' . headerDecode($target_head['subject']) . '

'; $display .= '' . $target_head['newsgroup'] . ''; - // Do better than !isset($value[$target_head['msgid']]) $timetest = $oldest; if ($newonly) { $timetest = $userdata[$target_head['newsgroup']]; @@ -393,7 +392,7 @@ function display_threads($threads, $oldest) $display .= '

Posted: ' . get_date_interval(date("D, j M Y H:i T", $target_head['date'])) . ' by: ' . create_name_link($poster['name'], $poster['from']) . '

'; if ($CONFIG['article_database'] == '1') { $article = get_db_data_from_msgid($target_head['msgid'], $target_head['newsgroup'], 1); - $display .= wordwrap(substr($article['search_snippet'], 0, $snippetlength), ($snippetlength / 2), "
\n", true); + $display .= strip_tags(wordwrap(substr($article['search_snippet'], 0, $snippetlength), ($snippetlength / 2), "
\n", true)); } } $skip = $target_head['number']; @@ -431,7 +430,7 @@ function display_threads($threads, $oldest) $display .= '

Posted: ' . get_date_interval(date("D, j M Y H:i T", $target['date'])) . ' in: ' . $target['newsgroup'] . '

'; if ($CONFIG['article_database'] == '1') { $article = get_db_data_from_msgid($target['msgid'], $target['newsgroup'], 1); - $display .= htmlentities(substr($article['search_snippet'], 0, $snippetlength)); + $display .= strip_tags(htmlentities(substr($article['search_snippet'], 0, $snippetlength))); } if ($target['date'] < $expireme) { unset($this_overboard['threads'][$target['date']]);