mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Read a special characters from doublecmd.xml (fixes #2176)
This commit is contained in:
parent
39cbab00eb
commit
85faf82d4b
1 changed files with 5 additions and 2 deletions
|
|
@ -153,6 +153,9 @@ implementation
|
|||
uses
|
||||
LazLogger, DCBasicTypes, DCOSUtils, DCClassesUtf8, URIParser;
|
||||
|
||||
const
|
||||
XML_READER_FLAGS = [xrfAllowSpecialCharsInAttributeValue];
|
||||
|
||||
const
|
||||
BoolStrings: array[Boolean] of DOMString = ('False', 'True');
|
||||
|
||||
|
|
@ -527,7 +530,7 @@ begin
|
|||
try
|
||||
if FileStream.Size = 0 then
|
||||
raise EXmlConfigEmpty.Create('');
|
||||
ReadXMLFile(TmpDoc, FileStream, FilenameToURI(AFilename), []);
|
||||
ReadXMLFile(TmpDoc, FileStream, FilenameToURI(AFilename), XML_READER_FLAGS);
|
||||
if TmpDoc.DocumentElement.NodeName <> ApplicationName then
|
||||
raise EXMLReadError.Create('Root element is not <' + ApplicationName + '>.');
|
||||
FDoc.Free;
|
||||
|
|
@ -543,7 +546,7 @@ var
|
|||
begin
|
||||
if AStream.Size = 0 then
|
||||
raise EXmlConfigEmpty.Create('');
|
||||
ReadXMLFile(TmpDoc, AStream, []);
|
||||
ReadXMLFile(TmpDoc, AStream, XML_READER_FLAGS);
|
||||
FDoc.Free;
|
||||
FDoc := TmpDoc;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue