зеркало из https://github.com/mozilla/pjs.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:
Родитель
651f94b6fb
Коммит
e43d0d8a4a
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче