Commit f778e537 authored by Tom Lane's avatar Tom Lane

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 8d1dadb2 et al.
parent 4870dce3
...@@ -1496,10 +1496,6 @@ xml_doctype_in_content(const xmlChar *str) ...@@ -1496,10 +1496,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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment