From: Rasmus Lerdorf Date: Tue, 22 Apr 2003 20:47:09 +0000 (+0000) Subject: MFB: &039; which is a single-quote may also come in as &39; X-Git-Tag: SPL_ALPHA~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d248d81a6ba97588c5d00fffd1ecb4f7bef24fe;p=php 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() --- 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 }