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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 07 May 2004 21:51:31 -0000


albertel		Fri May  7 17:51:31 2004 EDT

  Modified files:              
    /loncom/interface	lonpickcourse.pm 
  Log:
  -sigh, use entities enocde, please ?
  
  
Index: loncom/interface/lonpickcourse.pm
diff -u loncom/interface/lonpickcourse.pm:1.15 loncom/interface/lonpickcourse.pm:1.16
--- loncom/interface/lonpickcourse.pm:1.15	Fri May  7 13:53:01 2004
+++ loncom/interface/lonpickcourse.pm	Fri May  7 17:51:30 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Pick a course
 #
-# $Id: lonpickcourse.pm,v 1.15 2004/05/07 17:53:01 www Exp $
+# $Id: lonpickcourse.pm,v 1.16 2004/05/07 21:51:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -62,8 +62,7 @@
 # description filter
     my $descriptfilter=$ENV{'form.descriptfilter'};
     unless ($descriptfilter) { $descriptfilter=''; }
-    my $listdescript=$descriptfilter;
-    $listdescript=~s/\"/\&quot\;/g;
+    my $listdescript=&HTML::Entities::encode($descriptfilter,'<>&"');
 # last course activity filter and selection
     my $sincefilter=$ENV{'form.sincefilter'};
     $sincefilter=~s/[^\d-]//g;