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++) {