#44445 [NEW]: filter_var doesn't filter email with dashed domainname
| From: | hanno at hboeck dot de | Date: | Sun, 16 Mar 2008 15:18:39 +0000 |
| Subject: | #44445 [NEW]: filter_var doesn't filter email with dashed domainname | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-123348@lists.php.net to get a copy of this message | ||
From: hanno at hboeck dot de
Operating system: Linux
PHP version: 5.2.6RC2
PHP Bug Type: Filter related
Bug description: filter_var doesn't filter email with dashed domainname
Description:
------------
As an example, filter_var("foo@-foo.com",FILTER_VALIDATE_EMAIL); will
report this address as valid, although domains beginning or ending with a
dash are invalid (same with foo@foo-.com).
--
Edit bug report at http://bugs.php.net/?id=44445&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44445&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44445&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44445&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44445&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44445&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44445&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44445&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44445&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44445&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44445&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44445&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44445&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44445&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44445&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44445&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44445&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44445&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44445&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44445&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44445&r=mysqlcfg