Update security.php

This commit is contained in:
Namhyeon Go 2018-09-24 02:55:29 +09:00 committed by GitHub
parent fa2d3aadda
commit 03c19b86db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,7 +481,7 @@ if(!function_exists("decapsulate_text")) {
$decrypted_text = ""; $decrypted_text = "";
// initialize text // initialize text
$init_text = base64_decode($text); $init_text = get_hashed_text($text, "base64", array("decode" => true));
if($algo = "base64") { if($algo = "base64") {
$decapsulate_text = $init_text; $decapsulate_text = $init_text;
@ -496,7 +496,7 @@ if(!function_exists("decapsulate_text")) {
} }
if(!empty($encrypted_text)) { if(!empty($encrypted_text)) {
$decapsulate_text = base64_decode($decrypted_text); $decapsulate_text = get_hashed_text($decrypted_text, "base64", array("decode" => true));
} }
} }