summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2003-04-22 20:44:55 +0000
committerRasmus Lerdorf <rasmus@php.net>2003-04-22 20:44:55 +0000
commit9a57fc8cab8912818a1b8c409b1c41bcbda90815 (patch)
tree32ca46210e25b1afd8636ad8eafed7e734ab0b34 /ext
parent0117c206d669dfbc22c635f411bb7f0abdf153b5 (diff)
downloadphp-git-9a57fc8cab8912818a1b8c409b1c41bcbda90815.tar.gz
&039; which is a single-quote may also come in as &39; I see no reason
not to handle both in html_entity_decode()
Diffstat (limited to 'ext')
-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 eb96c5041f..50cebb3d00 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -400,6 +400,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 }