--- loncom/interface/lonfeedback.pm 2003/09/15 21:50:49 1.58 +++ 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.58 2003/09/15 21:50:49 albertel Exp $ +# $Id: lonfeedback.pm,v 1.61 2003/09/19 16:12:50 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -365,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; } @@ -737,7 +737,7 @@ sub handler { } } else { # Ambiguous Problem Resource - if ( $Apache::lonnet::perlvar{'MODPERL2'} ) { + if ( &Apache::lonnet::mod_perl_version() == 2 ) { &Apache::lonnet::cleanenv(); } $r->internal_redirect('/adm/ambiguous');