--- loncom/interface/lonfeedback.pm 2003/09/15 18:43:54 1.56 +++ loncom/interface/lonfeedback.pm 2003/09/19 16:12:50 1.61 @@ -1,7 +1,7 @@ # The LearningOnline Network # Feedback # -# $Id: lonfeedback.pm,v 1.56 2003/09/15 18:43:54 www Exp $ +# $Id: lonfeedback.pm,v 1.61 2003/09/19 16:12:50 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -53,7 +53,9 @@ use Apache::loncommon(); use Apache::lontexconvert(); sub list_discussion { - my ($discussiononly,$symb)=@_; + my ($mode,$status,$symb)=@_; + my $discussiononly=0; + if ($mode eq 'board') { $discussiononly=1; } unless ($ENV{'request.course.id'}) { return ''; } my $crs='/'.$ENV{'request.course.id'}; if ($ENV{'request.course.sec'}) { @@ -363,14 +365,14 @@ sub clear_out_html { # allows


      • #
        my %html=(B=>1, I=>1, P=>1, A=>1, LI=>1, OL=>1, UL=>1, EM=>1, - BR=>1, TT=>1, STRONG=>1, BLOCKQUOTE=>1, DIV=>1, IMG=>1); + BR=>1, TT=>1, STRONG=>1, BLOCKQUOTE=>1, DIV=>1, IMG=>1, + M=>1); $message =~ s/\<(\/?\s*(\w+)[^\>\<]*)/ {($html{uc($2)}&&(length($1)<1000))?"\<$1":"\<$1"}/ge; $message =~ s/(\]*)\>/ {($html{uc($2)}&&(length($1)<1000))?"$1\>":"$1\>"}/ge; } else { - $message=~s/\<\/*m\s*\>//g; $message=~s/\/\>\;/g; } @@ -735,9 +737,9 @@ sub handler { } } else { # Ambiguous Problem Resource - + if ( &Apache::lonnet::mod_perl_version() == 2 ) { &Apache::lonnet::cleanenv(); - + } $r->internal_redirect('/adm/ambiguous'); } }