Remove the PHP 5.3 deprecated split function.
This commit is contained in:
@@ -95,7 +95,7 @@ class IDF_Form_PasswordInputKey extends Pluf_Form
|
||||
return false;
|
||||
}
|
||||
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));
|
||||
$f = split(':', $cr->decrypt($encrypted), 3);
|
||||
$f = explode(':', $cr->decrypt($encrypted), 3);
|
||||
if (count($f) != 3) {
|
||||
return false;
|
||||
}
|
||||
|
@@ -91,6 +91,6 @@ class IDF_Form_RegisterInputKey extends Pluf_Form
|
||||
return false;
|
||||
}
|
||||
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));
|
||||
return split(':', $cr->decrypt($encrypted), 2);
|
||||
return explode(':', $cr->decrypt($encrypted), 2);
|
||||
}
|
||||
}
|
||||
|
@@ -63,7 +63,7 @@ class IDF_Form_UserChangeEmail extends Pluf_Form
|
||||
throw new Pluf_Form_Invalid(__('The validation key is not valid. Please copy/paste it from your confirmation email.'));
|
||||
}
|
||||
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));
|
||||
return split(':', $cr->decrypt($encrypted), 3);
|
||||
return explode(':', $cr->decrypt($encrypted), 3);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user