--- loncom/interface/lonbulletin.pm 2009/12/14 13:42:33 1.56 +++ loncom/interface/lonbulletin.pm 2010/08/07 19:23:50 1.61 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.56 2009/12/14 13:42:33 wenzelju Exp $ +# $Id: lonbulletin.pm,v 1.61 2010/08/07 19:23:50 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -184,6 +184,9 @@ sub handler { if (($group ne '') && ($env{'form.group'} eq $group)) { $query_str.='&group='.$group.'&'.$refarg; } + if ($env{'form.register'}) { + $query_str .= '®ister='.$env{'form.register'}; + } #Function Box for Edit Mode. my $functionbox = &Apache::lonhtmlcommon::start_funclist(); $functionbox .= &Apache::lonhtmlcommon::add_item_funclist( @@ -196,6 +199,9 @@ sub handler { if (($group ne '') && ($env{'form.group'} eq $group)) { $query_str.='&group='.$group.'&'.$refarg; } + if ($env{'form.register'}) { + $query_str .= '®ister='.$env{'form.register'}; + } #Functionbox for Student view. my $functionbox = &Apache::lonhtmlcommon::start_funclist(); $functionbox .= &Apache::lonhtmlcommon::add_item_funclist( @@ -237,7 +243,7 @@ sub handler { # ---------------------------------------------------------------- Get discussion board if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { #Print Topic as Heading - my $titletext=$syllabus{'aaa_title'}; + my $titletext=&HTML::Entities::encode($syllabus{'aaa_title'},'<>&"');; if ($target ne 'tex') { $r->print('
'.&mt('No page information provided.').'
'); + if ($target ne 'tex') { + $r->print(''.&mt('No page information provided.').'
'); + } } #Lists discussion posts and box for a new discussion post. if ($target ne 'tex') {