From: Pierre Joye Date: Fri, 9 Oct 2009 17:50:17 +0000 (+0000) Subject: - Merge: Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters) X-Git-Tag: php-5.3.1RC2~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a57cb01e66beb9986990d463404a7ce6cef3b4d;p=php - Merge: Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters) --- diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c index 24eafd13da..cdfe08c29b 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);