Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e319f03

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 7c89f35 commit e319f03

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
@@ -1465,10 +1465,6 @@ xml_doctype_in_content(const xmlChar *str)
14651465
if (!e)
14661466
return false;
14671467

1468-
/* we don't check PIs carefully, but do reject "xml" target */
1469-
if (e - p >= 3 && xmlStrncasecmp(p, (xmlChar *) "xml", 3) == 0)
1470-
return false;
1471-
14721468
/* advance over PI, keep scanning */
14731469
p = e + 2;
14741470
}

0 commit comments

Comments
 (0)