Update security.php

This commit is contained in:
Namhyeon Go 2018-09-24 03:11:22 +09:00 committed by GitHub
parent 3fad6e98c9
commit b3f03c4c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,10 +261,8 @@ if(!function_exists("check_match_password")) {
switch($algo) {
case "sha1":
$n_hashed_text = get_hashed_text($n_plain_text, $algo);
$flag = ($n_hashed_text == $p);
break;
case "md5":
case "crc32":
$n_hashed_text = get_hashed_text($n_plain_text, $algo);
$flag = ($n_hashed_text == $p);
break;