fix bug
parent
7022a9c6b9
commit
7f566bcc0d
|
@ -191,7 +191,9 @@ function equal_replace($str, $add = false)
|
||||||
{
|
{
|
||||||
if ($add) {
|
if ($add) {
|
||||||
while(strlen($str)%4) $str .= '=';
|
while(strlen($str)%4) $str .= '=';
|
||||||
|
$str = urldecode(base64_decode($str));
|
||||||
} else {
|
} else {
|
||||||
|
$str = base64_encode(urlencode($str));
|
||||||
while(substr($str,-1)=='=') $str=substr($str,0,-1);
|
while(substr($str,-1)=='=') $str=substr($str,0,-1);
|
||||||
}
|
}
|
||||||
return $str;
|
return $str;
|
||||||
|
|
Loading…
Reference in New Issue