[greenstone-devel] HTMLPlug and CDATA sections

From jens wille
DateMon Dec 17 02:34:03 2007
Subject [greenstone-devel] HTMLPlug and CDATA sections
hey guys!

just came across a minor issue with HTMLPlug. it should handle CDATA
sections in description tags correctly. here's the diff against v2.73:

----[ diff HTMLPlug.pm{.orig,} ]----
*** HTMLPlug.pm.orig 2007-06-05 06:26:50.000000000 +0200
--- HTMLPlug.pm 2007-12-16 14:02:39.000000000 +0100
***************
*** 752 ****
! unless $dont_strip && ($dont_strip eq 'all' || $metaname =~
/^($dont_strip)$/);
--- 752 ----
! unless $metavalue =~ s/^<![CDATA[(.*)]]>$/1/ || ($dont_strip
&& ($dont_strip eq 'all' || $metaname =~ /^($dont_strip)$/));
---- snip ----

cheers
jens