--- loncom/interface/lonbulletin.pm 2009/11/26 05:21:43 1.50 +++ loncom/interface/lonbulletin.pm 2009/12/03 02:13:28 1.52 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.50 2009/11/26 05:21:43 faziophi Exp $ +# $Id: lonbulletin.pm,v 1.52 2009/12/03 02:13:28 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -249,11 +249,10 @@ sub handler { foreach my $field (sort(keys(%syllabusfields))) { if (($syllabus{$field}) || ($allowed)) { my $message=$syllabus{$field}; - if (&Apache::lonfeedback::newline_to_br($message)) { + if (!&Apache::lonfeedback::contains_block_html($message)) { &Apache::lonfeedback::newline_to_br(\$message); } - $message - =~s/(https*\:\/\/[^\s]+)/\\$1\<\/tt\>\<\/a\>/g; + $message=&Apache::lonhtmlcommon::raw_href_to_link($message); if ($allowed) { $message=&Apache::lonspeller::markeduptext($message); }