From 9834a0962ed36a884ae5bb8171af17dbdf897457 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 13 Aug 2018 09:20:48 +0900 Subject: [PATCH] =?UTF-8?q?str=5Fencrypt=20=ED=81=B4=EB=9E=98=EC=8A=A4=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 084ffb16e..111059b77 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -3288,12 +3288,12 @@ class str_encrypt $result .= $char; } - return base64_encode($result); + return strtr(base64_encode($result) , '+/=', '._-'); } function decrypt($str) { $result = ''; - $str = base64_decode($str); + $str = base64_decode(strtr($str, '._-', '+/=')); $length = strlen($str); for($i=0; $i<$length; $i++) {