From e9423bc972b74b89b55232f35f41fa8df99de547 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Thu, 20 Jun 2013 09:19:25 +0200 Subject: bug 1176: Fix deprecation of split function in general.php --- includes/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/general.php b/includes/general.php index d36024e..96ad4a8 100644 --- a/includes/general.php +++ b/includes/general.php @@ -536,7 +536,7 @@ $myemail = mysql_real_escape_string($email); if(preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\+\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/" , $email)) { - list($username,$domain)=split('@',$email); + list($username,$domain)=explode('@',$email,2); $dom = escapeshellarg($domain); $line = trim(`dig +short MX $dom 2>&1`); #echo $email."-$dom-$line-\n"; -- cgit v1.2.1