note 86200 deleted from function.ereg by felipe
| From: | felipe@php.net | Date: | Fri, 10 Oct 2008 19:32:36 +0000 |
| Subject: | note 86200 deleted from function.ereg by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145255@lists.php.net to get a copy of this message | ||
Note Submitter: krasnodarles at msn dot com
----
TO pascalaschwandenPLEASENOSPAM at gmail dot com
If I am first use dot or dash in URL like $var=".php.net"; or $var="-php.net";
the expression return true.
This is not correct.
case âURLâ:
if (ereg("^[a-zA-Z0-9\-\.]+\.(com|org|net|mil|edu)$",$var)) {
$valid = true;
}