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

ext/standard/html.c

index eb96c5041f2f88ba335e821a3aaf501caca73f97..50cebb3d001737172f6dcfda026c8a2c4d271447 100644 (file)
@@ -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 }