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 1232... Zeile 1232...
1232
		if (function_exists('idn_to_ascii') && preg_match('#\A([^@]+)@(.+)\z#', $str, $matches))
1232
		if (function_exists('idn_to_ascii') && preg_match('#\A([^@]+)@(.+)\z#', $str, $matches))
1233
		{
1233
		{
1234
			$domain = defined('INTL_IDNA_VARIANT_UTS46')
1234
			$domain = defined('INTL_IDNA_VARIANT_UTS46')
1235
				? idn_to_ascii($matches[2], 0, INTL_IDNA_VARIANT_UTS46)
1235
				? idn_to_ascii($matches[2], 0, INTL_IDNA_VARIANT_UTS46)
1236
				: idn_to_ascii($matches[2]);
1236
				: idn_to_ascii($matches[2]);
-
 
1237
 
-
 
1238
			if ($domain !== FALSE)
-
 
1239
			{
1237
			$str = $matches[1].'@'.$domain;
1240
				$str = $matches[1].'@'.$domain;
-
 
1241
			}
1238
		}
1242
		}
Zeile 1239... Zeile 1243...
1239
 
1243
 
1240
		return (bool) filter_var($str, FILTER_VALIDATE_EMAIL);
1244
		return (bool) filter_var($str, FILTER_VALIDATE_EMAIL);