Skip to content

Commit 432356a

Browse files
committed
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 8d1dadb et al.
1 parent d5e9e23 commit 432356a

File tree

1 file changed

+0
-4
lines changed
  • src/backend/utils/adt

1 file changed

+0
-4
lines changed

src/backend/utils/adt/xml.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,10 +1400,6 @@ xml_doctype_in_content(const xmlChar *str)
14001400
if (!e)
14011401
return false;
14021402

1403-
/* we don't check PIs carefully, but do reject "xml" target */
1404-
if (e - p >= 3 && xmlStrncasecmp(p, (xmlChar *) "xml", 3) == 0)
1405-
return false;
1406-
14071403
/* advance over PI, keep scanning */
14081404
p = e + 2;
14091405
}

0 commit comments

Comments
 (0)