[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 23 Jul 2004 16:56:30 -0000


albertel		Fri Jul 23 12:56:30 2004 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  - need to protect anything that is going to be put into a <textarea>
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.102 loncom/interface/lonfeedback.pm:1.103
--- loncom/interface/lonfeedback.pm:1.102	Thu Jul 22 19:18:01 2004
+++ loncom/interface/lonfeedback.pm	Fri Jul 23 12:56:29 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.102 2004/07/22 23:18:01 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.103 2004/07/23 16:56:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -829,6 +829,7 @@
               } else {
                   $oldmessage = $contrib{$idx.':message'};
               }
+	      $oldmessage=&HTML::Entities::encode($oldmessage,'<>&"');
               if ($contrib{$idx.':subject'} =~ /::::\d+::::(.+)$/si) {
                   $subject = $1;
               } else {