Subversion-Projekte lars-tiefland.ci

Revision

Revision 2257 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2257 Revision 2258
Zeile 1036... Zeile 1036...
1036
		{
1036
		{
1037
			list($account, $domain) = explode('@', $email, 2);
1037
			list($account, $domain) = explode('@', $email, 2);
1038
			$domain = defined('INTL_IDNA_VARIANT_UTS46')
1038
			$domain = defined('INTL_IDNA_VARIANT_UTS46')
1039
				? idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46)
1039
				? idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46)
1040
				: idn_to_ascii($domain);
1040
				: idn_to_ascii($domain);
-
 
1041
 
-
 
1042
			if ($domain !== FALSE)
-
 
1043
			{
1041
			$email = $account.'@'.$domain;
1044
				$email = $account.'@'.$domain;
-
 
1045
			}
1042
		}
1046
		}
Zeile 1043... Zeile 1047...
1043
 
1047
 
1044
		return (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
1048
		return (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
Zeile 1857... Zeile 1861...
1857
		{
1861
		{
1858
			list($account, $domain) = explode('@', $email, 2);
1862
			list($account, $domain) = explode('@', $email, 2);
1859
			$domain = defined('INTL_IDNA_VARIANT_UTS46')
1863
			$domain = defined('INTL_IDNA_VARIANT_UTS46')
1860
				? idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46)
1864
				? idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46)
1861
				: idn_to_ascii($domain);
1865
				: idn_to_ascii($domain);
-
 
1866
 
-
 
1867
			if ($domain !== FALSE)
-
 
1868
			{
1862
			$email = $account.'@'.$domain;
1869
				$email = $account.'@'.$domain;
-
 
1870
			}
1863
		}
1871
		}
Zeile 1864... Zeile 1872...
1864
 
1872
 
1865
		return (filter_var($email, FILTER_VALIDATE_EMAIL) === $email && preg_match('#\A[a-z0-9._+-]+@[a-z0-9.-]{1,253}\z#i', $email));
1873
		return (filter_var($email, FILTER_VALIDATE_EMAIL) === $email && preg_match('#\A[a-z0-9._+-]+@[a-z0-9.-]{1,253}\z#i', $email));