]> granicus.if.org Git - php/commitdiff
MFB: &039; which is a single-quote may also come in as &39;
authorRasmus Lerdorf <rasmus@php.net>
Tue, 22 Apr 2003 20:47:09 +0000 (20:47 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 22 Apr 2003 20:47:09 +0000 (20:47 +0000)
I see no reason not to support both in html_entity_decode()

ext/standard/html.c

index ee4220c1b160495d886db8f1da08a52451372a4a..b61e983ba2a0cbba9059a3a4e523fcb423cba4f2 100644 (file)
@@ -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 }