From: Ilia Alshanetsky Date: Mon, 7 Sep 2009 02:35:25 +0000 (+0000) Subject: Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters). X-Git-Tag: php-5.4.0alpha1~191^2~2685 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df377868bd1c753817803af658314f4f13a9597d;p=php Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters). --- diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c index 84c1919851..2d5d6272b6 100644 --- a/ext/filter/sanitizing_filters.c +++ b/ext/filter/sanitizing_filters.c @@ -275,7 +275,7 @@ void php_filter_unsafe_raw(PHP_INPUT_FILTER_PARAM_DECL) void php_filter_email(PHP_INPUT_FILTER_PARAM_DECL) { /* Check section 6 of rfc 822 http://www.faqs.org/rfcs/rfc822.html */ - const unsigned char allowed_list[] = LOWALPHA HIALPHA DIGIT "!#$%&'*+-/=?^_`{|}~@.[]"; + const unsigned char allowed_list[] = LOWALPHA HIALPHA DIGIT "!#$%&'*+-=?^_`{|}~@.[]"; filter_map map; filter_map_init(&map);