PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Validate » Validate » Bug #8853

E-Mail validation allows space before TLD

Details

Submitted2006-10-05 01:15 UTC
Fromsc at itst dot net
Assignedamir
StatusClosed
PackageValidate
PHP Version5.1.2
OSWin XP
Roadmaps0.8.0

Comments

[2006-10-05 01:15 UTC] sc at itst dot net

Description:
------------
When validating e-mail addresses, "john@doe. com" validates.

Test script:
---------------
<?php

$val = new Validate;
var_dump($val->email("john@doe. com"));

?>

Expected result:
----------------
false

Actual result:
--------------
true

[2006-10-05 04:42 UTC] amir at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.