--- loncom/interface/lonfeedback.pm 2006/08/14 21:44:14 1.215
+++ loncom/interface/lonfeedback.pm 2006/11/09 20:44:37 1.217
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.215 2006/08/14 21:44:14 albertel Exp $
+# $Id: lonfeedback.pm,v 1.217 2006/11/09 20:44:37 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -752,13 +752,13 @@ END
if ($outputtarget ne 'tex') {
$discussion.=''.
- '
'.
+ '
'.
&mt('Post Discussion').'
';
}
}
- $discussion.='
'.
+ '">
'.
&mt('Send Message').'';
}
return $discussion;
@@ -2546,9 +2546,9 @@ sub clear_out_html {
H1=>1, H2=>1, H3=>1, H4=>1, H5=>1);
}
# Do the substitution of everything that is not explicitly allowed
- $message =~ s/\<(\/?\s*(\w*)[^\>\<]*)/
+ $message =~ s/\<(\/?\s*(\w+)[^\>\<]*)/
{($html{uc($2)}&&(length($1)<1000))?"\<$1":"\<$1"}/ge;
- $message =~ s/(\\s*(\w*)[^\<\>]*)\>/
+ $message =~ s/(\\s*(\w+)[^\<\>]*)\>/
{($html{uc($2)}&&(length($1)<1000))?"$1\>":"$1\>"}/ge;
return $message;
}