From 03c19b86db614deabe84d6400c0db0ef902352cd Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 24 Sep 2018 02:55:29 +0900 Subject: [PATCH] Update security.php --- system/security.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/security.php b/system/security.php index a6530de..b73f51a 100644 --- a/system/security.php +++ b/system/security.php @@ -481,7 +481,7 @@ if(!function_exists("decapsulate_text")) { $decrypted_text = ""; // initialize text - $init_text = base64_decode($text); + $init_text = get_hashed_text($text, "base64", array("decode" => true)); if($algo = "base64") { $decapsulate_text = $init_text; @@ -496,7 +496,7 @@ if(!function_exists("decapsulate_text")) { } if(!empty($encrypted_text)) { - $decapsulate_text = base64_decode($decrypted_text); + $decapsulate_text = get_hashed_text($decrypted_text, "base64", array("decode" => true)); } }