[LON-CAPA-cvs] cvs: rat / map.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 16 Jan 2007 21:18:08 -0000
albertel Tue Jan 16 16:18:08 2007 EDT
Modified files:
/rat map.pm
Log:
- when using enities in titles, maps would get saved incorrectly
Index: rat/map.pm
diff -u rat/map.pm:1.4 rat/map.pm:1.5
--- rat/map.pm:1.4 Wed Jan 3 15:46:04 2007
+++ rat/map.pm Tue Jan 16 16:18:08 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# routines for modyfing .sequence and .page files
#
-# $Id: map.pm,v 1.4 2007/01/03 20:46:04 albertel Exp $
+# $Id: map.pm,v 1.5 2007/01/16 21:18:08 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -29,6 +29,7 @@
package LONCAPA::map;
use HTML::TokeParser;
+use HTML::Entities();
use Apache::lonnet;
use Apache::lonlocal;
use File::Copy;
@@ -643,7 +644,7 @@
$outstr.=' type="'.$comp[3].'"';
}
if ($comp[0] ne '') {
- $outstr.=' title="'.$comp[0].'"';
+ $outstr.=' title="'.&HTML::Entities::encode($comp[0]).'"';
}
$outstr.=" />\n";
} elsif ($comp[$#comp] eq 'cond') {