From 0d248d81a6ba97588c5d00fffd1ecb4f7bef24fe Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 22 Apr 2003 20:47:09 +0000 Subject: [PATCH] MFB: &039; which is a single-quote may also come in as &39; I see no reason not to support both in html_entity_decode() --- ext/standard/html.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/standard/html.c b/ext/standard/html.c index ee4220c1b1..b61e983ba2 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -402,6 +402,7 @@ static const struct { { '&', "&", 5, 0 }, { '"', """, 6, ENT_HTML_QUOTE_DOUBLE }, { '\'', "'", 6, ENT_HTML_QUOTE_SINGLE }, + { '\'', "'", 5, ENT_HTML_QUOTE_SINGLE }, { '<', "<", 4, 0 }, { '>', ">", 4, 0 }, { 0, NULL, 0, 0 } -- 2.40.0