From 072f78529bd05bc4276eb85738a0eca950f8bb7a Mon Sep 17 00:00:00 2001 From: Alex Bobrov Date: Sun, 21 Apr 2013 14:32:02 +0700 Subject: [PATCH 1/2] bug #64441 fixed --- ext/filter/logical_filters.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index b8df2183b9d86..9a26cc65d9353 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -484,10 +484,6 @@ void php_filter_validate_url(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */ } s++; } - - if (*(e - 1) == '.') { - goto bad_url; - } } if ( From 0a7b670786124a67db28a588f31b21ccc6f3da78 Mon Sep 17 00:00:00 2001 From: Alex Bobrov Date: Mon, 22 Apr 2013 23:29:01 +0700 Subject: [PATCH 2/2] test added --- ext/filter/tests/bug64441.phpt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ext/filter/tests/bug64441.phpt diff --git a/ext/filter/tests/bug64441.phpt b/ext/filter/tests/bug64441.phpt new file mode 100644 index 0000000000000..149079ec05323 --- /dev/null +++ b/ext/filter/tests/bug64441.phpt @@ -0,0 +1,11 @@ +--TEST-- +bug 64441, FILTER_VALIDATE_URL will invalidate a hostname that ended by dot +--SKIPIF-- + +--FILE-- +