From c3f1d70369bf7c7ff7e01c78416f128e5ba6e3eb Mon Sep 17 00:00:00 2001 From: dbs Date: Wed, 10 Sep 2008 02:58:12 +0000 Subject: [PATCH] Escape CDATA before adding it to our entityized XML file (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/i18n/scripts/fieldmapper.py b/build/i18n/scripts/fieldmapper.py index b32bde2fd5..e198c0a4d8 100755 --- a/build/i18n/scripts/fieldmapper.py +++ b/build/i18n/scripts/fieldmapper.py @@ -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): """ -- 2.43.2