Skip to content
Snippets Groups Projects
Commit 3371a8b4 authored by Adrian Lang's avatar Adrian Lang
Browse files

Fixed selffail.

parent b7eccc60
No related branches found
No related tags found
No related merge requests found
......@@ -931,7 +931,7 @@ function auth_cryptPassword($clear,$method='',$salt=null){
$magic = '1';
case 'apr1':
//from http://de.php.net/manual/en/function.crypt.php#73619 comment by <mikey_nich at hotmail dot com>
if(!defined($magic)) $magic = 'apr1';
if(!isset($magic)) $magic = 'apr1';
$salt = substr($salt,0,8);
$len = strlen($clear);
$text = $clear.'$'.$magic.'$'.$salt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment