Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

parseEmail() fix

posted by anonymous 9 years ago

change:

list ($mailbox, $host) = explode('@', $string, 2);

to

$tmpArr = explode('@', $string, 2);
			if ( count($tmpArr) > 1 ) {
				$mailbox = $tmpArr[0];
				$host = $tmpArr[1];
			} else {
				$mailbox = $string;
				$host = "nodomain.com";
				}

We use aliases at work, and an alias doesn't have an @ on it.

This should be fixed in r851

posted by wbond 9 years ago