bug 1176: Fix deprecation of split function in general.php
authorBenny Baumann <BenBE@geshi.org>
Thu, 20 Jun 2013 07:19:25 +0000 (09:19 +0200)
committerBenny Baumann <BenBE@geshi.org>
Thu, 20 Jun 2013 07:19:25 +0000 (09:19 +0200)
includes/general.php

index d36024e..96ad4a8 100644 (file)
                $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";