--- loncom/interface/lonbulletin.pm 2006/07/20 22:50:50 1.38 +++ loncom/interface/lonbulletin.pm 2007/07/03 00:12:30 1.44 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.38 2006/07/20 22:50:50 raeburn Exp $ +# $Id: lonbulletin.pm,v 1.44 2007/07/03 00:12:30 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,6 +36,7 @@ use Apache::lontexconvert; use Apache::lonfeedback; use Apache::lonlocal; use Apache::lonhtmlcommon; +use HTML::Entities(); use LONCAPA; sub handler { @@ -211,11 +212,11 @@ sub handler { &Apache::lonnet::put('bulletinpage_'.$marker,\%syllabus,$dom,$crs); } if (($allowed) && ($env{'form.storesyl'})) { - foreach (keys %syllabusfields) { - my $field=$env{'form.'.$_}; + foreach my $syl_field (keys(%syllabusfields)) { + my $field=$env{'form.'.$syl_field}; $field=~s/\s+$//s; $field=&Apache::lonfeedback::clear_out_html($field,1); - $syllabus{$_}=$field; + $syllabus{$syl_field}=$field; } $syllabus{'uploaded.lastmodified'}=time; &Apache::lonnet::put('bulletinpage_'.$marker,\%syllabus,$dom,$crs); @@ -238,9 +239,9 @@ sub handler { ''. '