mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:59:08 +02:00
LazUtils: TXmlReader , only allow reading #0 if xrfAllowSpecialCharsInAttributeValue is set. Don't allow with just XML11.
This commit is contained in:
parent
295e3188ba
commit
a700e87887
@ -1904,7 +1904,12 @@ begin
|
|||||||
until Value > $10FFFF;
|
until Value > $10FFFF;
|
||||||
|
|
||||||
case Value of
|
case Value of
|
||||||
$00..$08, $0B..$0C, $0E..$1F:
|
$00:
|
||||||
|
if (xrfAllowSpecialCharsInAttributeValue in FFlags) then
|
||||||
|
BufAppend(ToFill, DOMChar(Value))
|
||||||
|
else
|
||||||
|
FatalError('Invalid character reference');
|
||||||
|
$01..$08, $0B..$0C, $0E..$1F:
|
||||||
if FXML11 or (xrfAllowSpecialCharsInAttributeValue in FFlags) then
|
if FXML11 or (xrfAllowSpecialCharsInAttributeValue in FFlags) then
|
||||||
BufAppend(ToFill, DOMChar(Value))
|
BufAppend(ToFill, DOMChar(Value))
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user