Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit581b890

Browse files
committed
Remove inadequate check for duplicate "xml" PI.
I failed to think about PIs starting with "xml". We don't reallyneed this check at all, so just take it out. Oversight incommit8d1dadb et al.
1 parentd88d71e commit581b890

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
@@ -1458,10 +1458,6 @@ xml_doctype_in_content(const xmlChar *str)
14581458
if (!e)
14591459
return false;
14601460

1461-
/* we don't check PIs carefully, but do reject "xml" target */
1462-
if (e-p >=3&&xmlStrncasecmp(p, (xmlChar*)"xml",3)==0)
1463-
return false;
1464-
14651461
/* advance over PI, keep scanning */
14661462
p=e+2;
14671463
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp