Bug #2393 Updated: Can't use parse_url for url validation
| From: | andy@php.net | Date: | Sun, 22 Jul 2001 21:06:39 +0000 |
| Subject: | Bug #2393 Updated: Can't use parse_url for url validation | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60673@lists.php.net to get a copy of this message | ||
ID: 2393
Updated by: andy
Reported By: bram@guts.nl
Status: Open
Old Bug Type: Misbehaving function
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 3.0.12
New Comment:
reclassified
Previous Comments:
------------------------------------------------------------------------
[1999-09-27 19:06:38] bram@guts.nl
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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=2393&edit=1