summaryrefslogtreecommitdiff
path: root/ext/standard/html.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2003-04-22 20:47:09 +0000
committerRasmus Lerdorf <rasmus@php.net>2003-04-22 20:47:09 +0000
commit0d248d81a6ba97588c5d00fffd1ecb4f7bef24fe (patch)
treeb9bf04f5918f49e3557f6811ca55eae4951011c1 /ext/standard/html.c
parent11a96965c955a803357b3795dd011d192c4b9a9a (diff)
downloadphp-git-0d248d81a6ba97588c5d00fffd1ecb4f7bef24fe.tar.gz
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()
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r--ext/standard/html.c1
1 files changed, 1 insertions, 0 deletions
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 {
{ '&', "&amp;", 5, 0 },
{ '"', "&quot;", 6, ENT_HTML_QUOTE_DOUBLE },
{ '\'', "&#039;", 6, ENT_HTML_QUOTE_SINGLE },
+ { '\'', "&#39;", 5, ENT_HTML_QUOTE_SINGLE },
{ '<', "&lt;", 4, 0 },
{ '>', "&gt;", 4, 0 },
{ 0, NULL, 0, 0 }