From: Rasmus Lerdorf Date: Tue, 22 Apr 2003 20:44:55 +0000 (+0000) Subject: &039; which is a single-quote may also come in as &39; I see no reason X-Git-Tag: php-4.3.2RC2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a57fc8cab8912818a1b8c409b1c41bcbda90815;p=php &039; which is a single-quote may also come in as &39; I see no reason not to handle both in html_entity_decode() --- diff --git a/ext/standard/html.c b/ext/standard/html.c index eb96c5041f..50cebb3d00 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -400,6 +400,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 }