note 97629 deleted from function.filter-var by degeberg
| From: | degeberg@php.net | Date: | Thu, 29 Apr 2010 11:27:48 +0000 |
| Subject: | note 97629 deleted from function.filter-var by degeberg | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168779@lists.php.net to get a copy of this message | ||
Note Submitter: e-mike
----
A domainname with a minus sign is invalid.
$url = "http://www.domain-name.nl"; // not
valid
$url = "http://www.domainname.nl"; // is
valid
filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)
Why is the first url not valid? Is it a bug?