Bug #2393: Can't use parse_url for url validation
| From: | bram at guts dot nl | Date: | Mon, 27 Sep 1999 23:06:38 +0000 |
| Subject: | Bug #2393: Can't use parse_url for url validation | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11343@lists.php.net to get a copy of this message | ||
From: bram@guts.nl
Operating system: Linux
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: Can't use parse_url for url validation
I use parse_url() to validate url's.
But that does not work in my opinion very wel..
<?
$url=parse_url("http://this is no host");
print $url["host"];
?>
print's out :
this is no host
That's not a valid host.
It should be cool if parse_url did some regexp to check.
Bram