From 8fcc7d5c815677400ec8efce4b118bb62e45f308 Mon Sep 17 00:00:00 2001 From: Drak Date: Fri, 17 Aug 2012 19:46:54 +0000 Subject: [PATCH] Added warning about making assumptions on the protocol with FILTER_VALIDATE_URL git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327158 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filter/filters.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/filter/filters.xml b/reference/filter/filters.xml index 32548f7ea9..0c6ee2fca5 100644 --- a/reference/filter/filters.xml +++ b/reference/filter/filters.xml @@ -105,7 +105,7 @@ FILTER_FLAG_PATH_REQUIRED, FILTER_FLAG_QUERY_REQUIRED - Validates value as URL (according to &url.rfc;2396), optionally with required components. Note that the function will only find ASCII URLs to be valid; internationalized domain names (containing non-ASCII characters) will fail. + Validates value as URL (according to &url.rfc;2396), optionally with required components. Beware a valid URL may not specify the HTTP protocol http:// so further validation may be required to determine the URL uses an expected protocol, e.g. ssh:// or mailto:. Note that the function will only find ASCII URLs to be valid; internationalized domain names (containing non-ASCII characters) will fail.