summaryrefslogtreecommitdiff
path: root/includes/general.php
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-06-20 09:19:25 +0200
committerBenny Baumann <BenBE@geshi.org>2013-06-20 09:19:25 +0200
commite9423bc972b74b89b55232f35f41fa8df99de547 (patch)
tree202572b703bdc4704536107b29436c5c89b1dd03 /includes/general.php
parent056881f58c4c8d4b05740c1aeeb308af1753a6fd (diff)
downloadcacert-devel-e9423bc972b74b89b55232f35f41fa8df99de547.tar.gz
cacert-devel-e9423bc972b74b89b55232f35f41fa8df99de547.tar.xz
cacert-devel-e9423bc972b74b89b55232f35f41fa8df99de547.zip
bug 1176: Fix deprecation of split function in general.php
Diffstat (limited to 'includes/general.php')
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
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";