1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-12 16:21:30 +03: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:
Tom Lane 2019-03-23 17:40:19 -04:00
parent d88d71e310
commit 581b890c28

View File

@ -1458,10 +1458,6 @@ xml_doctype_in_content(const xmlChar *str)
if (!e) if (!e)
return false; 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 */ /* advance over PI, keep scanning */
p = e + 2; p = e + 2;
} }