Spurious "circular reference" for entity
Brought to you by:
tpsfadmin
Where a single span of text contains more than one
reference to the same entity, the parser raises an
exception complaining about a circular entity
definition (i.e. an entity which maps to a string
containing the entity itself).
It must to looking ahead into the data string being
parsed, rather than at the entity's mapped string.
Logged In: YES
user_id=966026
This is caused by an incorrect test for the result of XpPos
being not equal to -1 instead of 0. The corrected code
(around line 1969 of XpParser.pas) is:
{ We can't have a circular reference if the parsed
value
doesn't contain another reference.}
if (XpPos('&', TempStr) <> 0) then begin
{!!.52}{!!.60 rbl: was -1}