mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-31 13:27:22 +02:00
Remove inadequate check for duplicate "xml" PI.
I failed to think about PIs starting with "xml". We don't really
need this check at all, so just take it out. Oversight in
commit 8d1dadb25
et al.
This commit is contained in:
parent
7c89f350f1
commit
e319f03d12
@ -1465,10 +1465,6 @@ xml_doctype_in_content(const xmlChar *str)
|
||||
if (!e)
|
||||
return false;
|
||||
|
||||
/* we don't check PIs carefully, but do reject "xml" target */
|
||||
if (e - p >= 3 && xmlStrncasecmp(p, (xmlChar *) "xml", 3) == 0)
|
||||
return false;
|
||||
|
||||
/* advance over PI, keep scanning */
|
||||
p = e + 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user