зеркало из https://github.com/mozilla/gecko-dev.git
use the entire password as the seed when encrypting it, since some crypt() routines no longer use only the first two characters
This commit is contained in:
Родитель
84c0d8d35e
Коммит
29b610a7a6
|
@ -55,7 +55,7 @@ sub cryptit {
|
|||
|
||||
sub checkpassword {
|
||||
my ($plain, $encrypted) = (@_);
|
||||
return $encrypted eq crypt($plain, substr($encrypted, 0, 2));
|
||||
return $encrypted eq crypt($plain, $encrypted);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче