Skip to content

Commit f778e53

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 4870dce commit f778e53

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
@@ -1496,10 +1496,6 @@ xml_doctype_in_content(const xmlChar *str)
14961496
if (!e)
14971497
return false;
14981498

1499-
/* we don't check PIs carefully, but do reject "xml" target */
1500-
if (e - p >= 3 && xmlStrncasecmp(p, (xmlChar *) "xml", 3) == 0)
1501-
return false;
1502-
15031499
/* advance over PI, keep scanning */
15041500
p = e + 2;
15051501
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy