blob: 4f81782e44986d5063c45552b07fec7f25127589 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- ./includes/base_net.inc.php.orig 2010-03-05 16:06:18.000000000 +0100
+++ ./includes/base_net.inc.php 2010-04-11 23:52:13.000000000 +0200
@@ -391,7 +391,7 @@
$line = explode(" ", $response_l[$i]);
for ($j=0; $j < sizeof($line); $j++ )
{
- if ( eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $line[$j]) )
+ if ( preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $line[$j]) )
{
if ( $email == "" )
$email = $line[$j];
|