From 7f566bcc0d6b455cd81d32bcd4ad31aaa20d48f4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 29 Feb 2020 14:02:13 +0800 Subject: [PATCH] fix bug --- function/common.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/function/common.php b/function/common.php index 7102162..43302eb 100644 --- a/function/common.php +++ b/function/common.php @@ -191,7 +191,9 @@ function equal_replace($str, $add = false) { if ($add) { while(strlen($str)%4) $str .= '='; + $str = urldecode(base64_decode($str)); } else { + $str = base64_encode(urlencode($str)); while(substr($str,-1)=='=') $str=substr($str,0,-1); } return $str;