B2022-043 corrected the processing of the single quote. We were missing replacing a semi-colon when converting from “@apos;” to a single quote

This commit is contained in:
John Jenko 2022-03-24 20:21:15 +00:00
parent f684f7e65c
commit d0f9682c42

View File

@ -1858,7 +1858,8 @@ namespace RODBInterface
XmlNode ro; XmlNode ro;
try try
{ {
if (Info != null) Info = Info.Replace("&apos", "\'"); // B2021-071: crash when getting/saving field names //B2022-043 &pos; was missing the ;
if (Info != null) Info = Info.Replace("'", "\'"); // B2021-071: crash when getting/saving field names
XmlTextReader roreader = new XmlTextReader(Info, XmlNodeType.Element, null); XmlTextReader roreader = new XmlTextReader(Info, XmlNodeType.Element, null);
ro = ROXml.ReadNode(roreader); ro = ROXml.ReadNode(roreader);
} }
@ -1906,7 +1907,8 @@ namespace RODBInterface
MyRecID = RecID; MyRecID = RecID;
string AccPageID = DBE.GetString(2); string AccPageID = DBE.GetString(2);
string Info = DBE.GetString(3); string Info = DBE.GetString(3);
Info = Info.Replace("&apos", "\'"); // B2021-071: crash when getting/saving field names //B2022-043 &pos; was missing the ;
Info = Info.Replace("'", "\'"); // B2021-071: crash when getting/saving field names
node.SetAttribute("HasChild", "True"); node.SetAttribute("HasChild", "True");
// Store data in the VlnXmlElement as a subgroup // Store data in the VlnXmlElement as a subgroup