diff --git a/ChangeLog b/ChangeLog index ac6c372e4..5ab544423 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ * src/DataViews/_PedigreeView.py: Escape XML special chars * src/plugins/TestcaseGenerator.py: Create media note object; Randomize URL + * src/GrampsDb/_WriteXML.py: Escape XML special chars 2006-12-11 Don Allingham * src/Editors/_EditMedia.py: fix menu title (bug#755) diff --git a/src/GrampsDb/_WriteXML.py b/src/GrampsDb/_WriteXML.py index 882238929..131da64d5 100644 --- a/src/GrampsDb/_WriteXML.py +++ b/src/GrampsDb/_WriteXML.py @@ -526,7 +526,7 @@ class XmlWriter(UpdateCallback): return sp = " "*index priv_text = conf_priv(personref) - rel_text = ' rel="%s"' % personref.get_relation() + rel_text = ' rel="%s"' % escxml(personref.get_relation()) sreflist = personref.get_source_references() if (len(sreflist) == 0) and personref.get_note() =="": @@ -697,9 +697,9 @@ class XmlWriter(UpdateCallback): g = name.get_group_as() self.g.write('%s%s\n' % self.fix(n)) def write_line(self,tagname,value,indent=1): @@ -927,7 +927,7 @@ class XmlWriter(UpdateCallback): if reporef.call_number == "": callno_text = '' else: - callno_text = ' callno="%s"' % reporef.call_number + callno_text = ' callno="%s"' % escxml(reporef.call_number) mtype = reporef.media_type.xml_str() if mtype: