mirror of
https://github.com/postgres/postgres.git
synced 2026-06-05 06:43:00 -04: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
c4c2958c6b
commit
87a44b6cf9
1 changed files with 0 additions and 4 deletions
|
|
@ -1400,10 +1400,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 a new issue