Changeset 334 for trunk/lib/Email.inc.php
- Timestamp:
- May 13, 2008 4:14:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Email.inc.php
r311 r334 68 68 function Email($params=null) 69 69 { 70 // The regex used in validEmail(). Set here instead of in the default _params above so we can use the concat ination . dot.70 // The regex used in validEmail(). Set here instead of in the default _params above so we can use the concatenation . dot. 71 71 // This matches an email address as complex as: 72 72 // Bob John-Smith <bob&smith's/dep=sales!@smith-wick.ca.us> (Sales department) … … 347 347 return true; 348 348 } else { 349 // To be valid email address must match regex and fit within the len th constraints.349 // To be valid email address must match regex and fit within the length constraints. 350 350 if (preg_match($this->getParam('regex'), $email, $e_parts) && mb_strlen($e_parts[2]) < 64 && mb_strlen($e_parts[3]) < 255) { 351 351 return true;
Note: See TracChangeset
for help on using the changeset viewer.