From: moodler Date: Wed, 23 Oct 2002 12:13:47 +0000 (+0000) Subject: WHoops ... just undoing the last checkin which was premature ... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e870c78bfcd7613c4201a050abdd272dfa72ee38;p=moodle.git WHoops ... just undoing the last checkin which was premature ... --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f75f142702..cda277c48c 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -569,7 +569,7 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link echo ""; } - if ($link && (strlen(strip_tags($post->message)) > $FORUM_LONG_POST)) { + if ($link && (strlen($post->message) > $FORUM_LONG_POST)) { // Print shortened version echo format_text(forum_shorten_post($post->message), $post->format); $numwords = count_words($post->message); @@ -687,9 +687,8 @@ function forum_print_post_header(&$post, $courseid, $ownpost=false, $reply=false function forum_shorten_post($message) { global $FORUM_LONG_POST, $FORUM_SHORT_POST; - if (strlen(strip_tags($message)) > $FORUM_LONG_POST) { + if (strlen($message) > $FORUM_LONG_POST) { // Look for the first return between $FORUM_SHORT_POST and $FORUM_LONG_POST - // XXXX $shortmessage = substr($message, $FORUM_SHORT_POST, $FORUM_LONG_POST); if ($pos = strpos($shortmessage, "\n")) { return substr($message, 0, $FORUM_SHORT_POST + $pos);