Escape CDATA before adding it to our entityized XML file
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 10 Sep 2008 02:58:12 +0000 (02:58 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 10 Sep 2008 02:58:12 +0000 (02:58 +0000)
(fixes a bug with <> in oils_persist:source_definition for iatc)

git-svn-id: svn://svn.open-ils.org/ILS/trunk@10570 dcc99617-32d9-48b4-a31d-7c20da2025e4

build/i18n/scripts/fieldmapper.py

index b32bde2..e198c0a 100755 (executable)
@@ -137,7 +137,7 @@ class IDLHandler(xml.sax.handler.ContentHandler):
         """
         Shove character data into the entityized IDL file
         """
-        self.entityized = self.entityized + content
+        self.entityized = self.entityized + xml.sax.saxutils.escape(content)
 
     def endElement(self, name):
         """