Skip to content

Commit 5575826

Browse files
committed
Allow for X as well as x to be the prefix for hexadecimal character ref entity numbers,
as in HTML.
1 parent 3de1f0d commit 5575826

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/tsearch/wparser_def.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.12 2007/11/25 15:37:11 adunstan Exp $
10+
* $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.13 2007/11/25 19:35:41 adunstan Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -836,6 +836,7 @@ static const TParserStateActionItem actionTPS_InXMLEntity[] = {
836836
static const TParserStateActionItem actionTPS_InXMLEntityNumFirst[] = {
837837
{p_isEOF, 0, A_POP, TPS_Null, 0, NULL},
838838
{p_iseqC, 'x', A_NEXT, TPS_InXMLEntityHexNumFirst, 0, NULL},
839+
{p_iseqC, 'X', A_NEXT, TPS_InXMLEntityHexNumFirst, 0, NULL},
839840
{p_isdigit, 0, A_NEXT, TPS_InXMLEntityNum, 0, NULL},
840841
{NULL, 0, A_POP, TPS_Null, 0, NULL}
841842
};

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