--- loncom/interface/lonbulletin.pm 2012/11/17 00:05:50 1.65
+++ loncom/interface/lonbulletin.pm 2025/01/28 19:49:20 1.70
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Bulletin Board Handler
#
-# $Id: lonbulletin.pm,v 1.65 2012/11/17 00:05:50 raeburn Exp $
+# $Id: lonbulletin.pm,v 1.70 2025/01/28 19:49:20 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -33,9 +33,12 @@ use Apache::Constants qw(:common);
use Apache::loncommon;
use Apache::lonnet;
use Apache::lontexconvert;
-use Apache::lonfeedback;
+use Apache::lonfeedback;
+use Apache::lonhtmlgateway;
use Apache::lonlocal;
use Apache::lonhtmlcommon;
+use Apache::longroup;
+use Apache::lonnavmaps;
use HTML::Entities();
use LONCAPA;
@@ -78,7 +81,7 @@ sub handler {
# ------------------------------------------------------------ Get Query String
&Apache::loncommon::get_unprocessed_cgi
- ($ENV{'QUERY_STRING'},['forceedit','register',
+ ($ENV{'QUERY_STRING'},['forceedit','register','todocs',
'origpage','group','ref']);
# ----------------------------------------------------- Force menu registration
my %addentries;
@@ -211,8 +214,9 @@ sub handler {
if (($allowed) && ($env{'form.storesyl'})) {
foreach my $syl_field (keys(%syllabusfields)) {
my $field=$env{'form.'.$syl_field};
- $field=~s/\s+$//s;
- $field=&Apache::lonfeedback::clear_out_html($field,1);
+ chomp($field);
+ my $gateway = Apache::lonhtmlgateway->new();
+ $field = $gateway->process_incoming_html($field,1);
$syllabus{$syl_field}=$field;
}
$syllabus{'uploaded.lastmodified'}=time;
@@ -235,7 +239,8 @@ sub handler {
$r->print($titletext);
$r->print("