core-bundle/src/Resources/contao/library/Contao/Idna.php
public static function decodeEmail($strEmail)
	{
		if ($strEmail == '')
		{
			return '';
		}

		if (strpos($strEmail, '@') === false)
		{
			return $strEmail; // see #6241
		}

		$arrChunks = explode('@', $strEmail);
		$strHost = static::decode(array_pop($arrChunks));

		if ($strHost == '')
		{
			return '';
		}

		return implode('@', $arrChunks) . '@' . $strHost;
	}
public static function decodeEmail($strEmail)
	{
		if ($strEmail == '')
		{
			return '';
		}

		if (strpos($strEmail, '@') === false)
		{
			return $strEmail; // see #6241
		}

		$arrChunks = explode('@', $strEmail);
		$strHost = static::decode(array_pop($arrChunks));

		if ($strHost == '')
		{
			return '';
		}

		return implode('@', $arrChunks) . '@' . $strHost;
	}
public static function decodeEmail ( $ strEmail ) { if ( $ strEmail == '' ) { return '' ; } if ( strpos ( $ strEmail , '@' ) === false ) { return $ strEmail ; // see #6241 } $ arrChunks = explode ( '@' , $ strEmail ) ; $ strHost = static :: decode ( array_pop ( $ arrChunks ) ) ; if ( $ strHost == '' ) { return '' ; } return implode ( '@' , $ arrChunks ) . '@' . $ strHost ; }
Decode the domain in an e-mail address

@param string $strEmail The e-mail address

@return string The decoded e-mail address
Decode the domain in an e - mail address